diff options
author | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-18 15:46:33 +0100 |
---|---|---|
committer | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-18 15:46:33 +0100 |
commit | 29d6b359abd243e9b4c026020bfc5d82bee88b12 (patch) | |
tree | 908edca2f073eb3f486d02272c90176a6d41cd07 /Dockerfile | |
parent | 5f71d1ea01c54a79fb8f459f8acbe92b0ea99c61 (diff) | |
download | homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.gz homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.zst homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.zip |
Added entrypoint script and Dockerfile port&volume
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -21,12 +21,10 @@ ENV PORT 8080 | |||
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 darkhttpd |
23 | 23 | ||
24 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
25 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
26 | |||
27 | USER ${USER} | ||
28 | |||
29 | 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 | ||
30 | 26 | ||
27 | USER ${USER} | ||
31 | EXPOSE ${PORT} | 28 | EXPOSE ${PORT} |
29 | VOLUME [ "/www/config.yml", "/www/assets" ] | ||
32 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 30 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |