X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile;h=19d01f810aab9ac58277190be5ead17ea4ed9f0e;hb=6d29bc27e78bc549479cbbc203c683137ace9d48;hp=73519e0f5ac52e6aa5ba69f25d622d43d7aa958b;hpb=481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/Dockerfile b/Dockerfile index 73519e0..19d01f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,14 +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 - -RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh -RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh - -USER ${USER} + 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 entrypoint.sh /entrypoint.sh EXPOSE ${PORT} +VOLUME /www/assets ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]