Regroup all editable files in one place

This commit is contained in:
Bastien Wirtz
2020-06-23 22:56:33 -07:00
parent 796a16c8da
commit b102c9b2b3
11 changed files with 29 additions and 23 deletions

View File

@@ -19,12 +19,12 @@ ENV UID 911
ENV PORT 8080
RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
apk add -U darkhttpd
apk add -U --no-cache su-exec darkhttpd
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
USER ${USER}
EXPOSE ${PORT}
VOLUME [ "/www/config.yml", "/www/assets" ]
VOLUME /www/assets
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]