diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-28 11:07:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 11:07:37 -0700 |
commit | 25b6367aa14a6aefa842f70dc208fdb3e11f6e06 (patch) | |
tree | 41bdb9b456cbb8d59aaf421e8c82582a4eabcc55 /Dockerfile | |
parent | 796a16c8da1e40aef418559ade2252a5275708c8 (diff) | |
parent | b102c9b2b3aaa4d66bda8d932ba2d6bd4575c044 (diff) | |
download | homer-25b6367aa14a6aefa842f70dc208fdb3e11f6e06.tar.gz homer-25b6367aa14a6aefa842f70dc208fdb3e11f6e06.tar.zst homer-25b6367aa14a6aefa842f70dc208fdb3e11f6e06.zip |
Merge pull request #94 from bastienwirtz/avoid-file-volume
Regroup all editable files in one place
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,12 +19,12 @@ ENV UID 911 | |||
19 | ENV PORT 8080 | 19 | ENV PORT 8080 |
20 | 20 | ||
21 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 21 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
22 | apk add -U darkhttpd | 22 | apk add -U --no-cache su-exec darkhttpd |
23 | 23 | ||
24 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 24 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | ||
25 | COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh | 26 | COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh |
26 | 27 | ||
27 | USER ${USER} | ||
28 | EXPOSE ${PORT} | 28 | EXPOSE ${PORT} |
29 | VOLUME [ "/www/config.yml", "/www/assets" ] | 29 | VOLUME /www/assets |
30 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 30 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |