aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGlenn Toms <Glenn@glenntoms.gg>2020-06-12 17:50:07 +0100
committerGlenn Toms <Glenn@glenntoms.gg>2020-06-12 17:50:07 +0100
commit481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0 (patch)
treeff9d65c14502b86381237b5c0eebb2153d780364
parentcad54a560f77382d9584fd804f9cdd84c92012b7 (diff)
downloadhomer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.tar.gz
homer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.tar.zst
homer-481ab9a01bdbe44ca64e5b065f2b81e41bee3ea0.zip
Added ENV PORT options and EXPORT PORT
-rw-r--r--Dockerfile7
-rw-r--r--Dockerfile.arm32v77
-rw-r--r--Dockerfile.arm64v87
3 files changed, 18 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 205d759..73519e0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,12 +16,17 @@ ENV USER darkhttpd
16ENV GROUP darkhttpd 16ENV GROUP darkhttpd
17ENV GID 911 17ENV GID 911
18ENV UID 911 18ENV UID 911
19ENV PORT 8080
19 20
20RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 21RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
21 apk add -U darkhttpd 22 apk add -U darkhttpd
22 23
24RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
25RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
26
23USER ${USER} 27USER ${USER}
24 28
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
26 30
27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file 31EXPOSE ${PORT}
32ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
index 7664f66..952ecb7 100644
--- a/Dockerfile.arm32v7
+++ b/Dockerfile.arm32v7
@@ -25,13 +25,18 @@ ENV USER darkhttpd
25ENV GROUP darkhttpd 25ENV GROUP darkhttpd
26ENV GID 911 26ENV GID 911
27ENV UID 911 27ENV UID 911
28ENV PORT 8080
28 29
29RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 30RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
30 apk add -U darkhttpd && \ 31 apk add -U darkhttpd && \
31 rm /usr/bin/qemu-arm-static 32 rm /usr/bin/qemu-arm-static
32 33
34RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
35RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
36
33USER ${USER} 37USER ${USER}
34 38
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 39COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
36 40
37ENTRYPOINT ["darkhttpd","/www/","--no-listing"] 41EXPOSE ${PORT}
42ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index 0175341..d9c8aab 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -25,13 +25,18 @@ ENV USER darkhttpd
25ENV GROUP darkhttpd 25ENV GROUP darkhttpd
26ENV GID 911 26ENV GID 911
27ENV UID 911 27ENV UID 911
28ENV PORT 8080
28 29
29RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 30RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
30 apk add -U darkhttpd && \ 31 apk add -U darkhttpd && \
31 rm /usr/bin/qemu-aarch64-static 32 rm /usr/bin/qemu-aarch64-static
32 33
34RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
35RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
36
33USER ${USER} 37USER ${USER}
34 38
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 39COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
36 40
37ENTRYPOINT ["darkhttpd","/www/","--no-listing"] 41EXPOSE ${PORT}
42ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]