Co-authored-by: Glenn Toms <Glenn@Glenntoms.gg>
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
-RUN mv /www/assets /www/default-assets
+COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
USER ${USER}
EXPOSE ${PORT}
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
-RUN mv /www/assets /www/default-assets
+COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
USER ${USER}
EXPOSE ${PORT}
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
-RUN mv /www/assets /www/default-assets
+COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
USER ${USER}
EXPOSE ${PORT}
#!/bin/sh
while true; do echo n; done | cp -Ri /www/default-assets/* /www/assets/
-
+# This makes sure that at least the default config is available.
+yes n | cp -i /www/assets/config.yml.dist /www/assets/config.yml
# Ensure compatibility with previous version (config.yml was in the root directory)
if [ -f "/www/config.yml" ]; then
yes n | cp -i /www/config.yml /www/assets