diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-19 08:03:55 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-19 08:03:55 -0700 |
commit | 8d7ca88c469cb9591c57c620043c90542bfb0911 (patch) | |
tree | 92563dd43c6a0f134d5049aa3a2e63d45e9eae6c /Dockerfile | |
parent | fea05ea099424bab0f3d9cede6f054a7c4970a3f (diff) | |
parent | b24251110179b86e12d6823618777ef133738861 (diff) | |
download | homer-7b622c25344622f77e3120b6a12e795821c1a26a.tar.gz homer-7b622c25344622f77e3120b6a12e795821c1a26a.tar.zst homer-7b622c25344622f77e3120b6a12e795821c1a26a.zip |
Merge branch 'master' of github.com-perso:bastienwirtz/homer20.06.1
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -16,12 +16,15 @@ ENV USER darkhttpd | |||
16 | ENV GROUP darkhttpd | 16 | ENV GROUP darkhttpd |
17 | ENV GID 911 | 17 | ENV GID 911 |
18 | ENV UID 911 | 18 | ENV UID 911 |
19 | ENV PORT 8080 | ||
19 | 20 | ||
20 | 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} && \ |
21 | apk add -U darkhttpd | 22 | apk add -U darkhttpd |
22 | 23 | ||
23 | USER ${USER} | ||
24 | |||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 24 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
25 | COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh | ||
26 | 26 | ||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 27 | USER ${USER} |
28 | EXPOSE ${PORT} | ||
29 | VOLUME [ "/www/config.yml", "/www/assets" ] | ||
30 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||