diff options
author | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-12 17:50:07 +0100 |
---|---|---|
committer | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-12 17:50:07 +0100 |
commit | 481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0 (patch) | |
tree | ff9d65c14502b86381237b5c0eebb2153d780364 /Dockerfile | |
parent | cad54a560f77382d9584fd804f9cdd84c92012b7 (diff) | |
download | homer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.tar.gz homer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.tar.zst homer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.zip |
Added ENV PORT options and EXPORT PORT
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -16,12 +16,17 @@ 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 | ||
24 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
25 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
26 | |||
23 | USER ${USER} | 27 | USER ${USER} |
24 | 28 | ||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 29 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
26 | 30 | ||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 31 | EXPOSE ${PORT} |
32 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||