X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile;fp=Dockerfile;h=cd3ab118cc5e32906aef57a14312b63745b7af7a;hb=29d6b359abd243e9b4c026020bfc5d82bee88b12;hp=73519e0f5ac52e6aa5ba69f25d622d43d7aa958b;hpb=5f71d1ea01c54a79fb8f459f8acbe92b0ea99c61;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/Dockerfile b/Dockerfile index 73519e0..cd3ab11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,10 @@ 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} - COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ +COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh +USER ${USER} EXPOSE ${PORT} +VOLUME [ "/www/config.yml", "/www/assets" ] ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]