X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile;h=19d01f810aab9ac58277190be5ead17ea4ed9f0e;hb=6d29bc27e78bc549479cbbc203c683137ace9d48;hp=cd3ab118cc5e32906aef57a14312b63745b7af7a;hpb=8d7ca88c469cb9591c57c620043c90542bfb0911;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/Dockerfile b/Dockerfile index cd3ab11..19d01f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh +COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets +COPY entrypoint.sh /entrypoint.sh -USER ${USER} EXPOSE ${PORT} -VOLUME [ "/www/config.yml", "/www/assets" ] +VOLUME /www/assets ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]