aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Dockerfile8
-rw-r--r--Dockerfile.arm32v78
-rw-r--r--Dockerfile.arm64v88
-rw-r--r--entrypoint.sh6
4 files changed, 15 insertions, 15 deletions
diff --git a/Dockerfile b/Dockerfile
index 73519e0..cd3ab11 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,12 +21,10 @@ ENV PORT 8080
21RUN 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} && \
22 apk add -U darkhttpd 22 apk add -U darkhttpd
23 23
24RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
25RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
26
27USER ${USER}
28
29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 24COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
25COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
30 26
27USER ${USER}
31EXPOSE ${PORT} 28EXPOSE ${PORT}
29VOLUME [ "/www/config.yml", "/www/assets" ]
32ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 30ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
index 952ecb7..ef01d1f 100644
--- a/Dockerfile.arm32v7
+++ b/Dockerfile.arm32v7
@@ -31,12 +31,10 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} &
31 apk add -U darkhttpd && \ 31 apk add -U darkhttpd && \
32 rm /usr/bin/qemu-arm-static 32 rm /usr/bin/qemu-arm-static
33 33
34RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
35RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
36
37USER ${USER}
38
39COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 34COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
40 36
37USER ${USER}
41EXPOSE ${PORT} 38EXPOSE ${PORT}
39VOLUME [ "/www/config.yml", "/www/assets" ]
42ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 40ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index d9c8aab..7899027 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -31,12 +31,10 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} &
31 apk add -U darkhttpd && \ 31 apk add -U darkhttpd && \
32 rm /usr/bin/qemu-aarch64-static 32 rm /usr/bin/qemu-aarch64-static
33 33
34RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
35RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
36
37USER ${USER}
38
39COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 34COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
40 36
37USER ${USER}
41EXPOSE ${PORT} 38EXPOSE ${PORT}
39VOLUME [ "/www/config.yml", "/www/assets" ]
42ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 40ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 0000000..7623322
--- /dev/null
+++ b/entrypoint.sh
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3yes n | cp -i /www/config.yml.dist /www/config.yml
4while true; do echo n; done | cp -Ri /app/dist/www/assets /www/assets 2>/dev/null
5
6darkhttpd /www/ --no-listing --port $PORT