From 29d6b359abd243e9b4c026020bfc5d82bee88b12 Mon Sep 17 00:00:00 2001 From: Glenn Toms Date: Thu, 18 Jun 2020 15:46:33 +0100 Subject: Added entrypoint script and Dockerfile port&volume --- Dockerfile.arm64v8 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Dockerfile.arm64v8') 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} & apk add -U darkhttpd && \ rm /usr/bin/qemu-aarch64-static -RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh -RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh - -USER ${USER} - COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ +COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh +USER ${USER} EXPOSE ${PORT} +VOLUME [ "/www/config.yml", "/www/assets" ] ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] -- cgit v1.2.3