Added entrypoint script and Dockerfile port&volume

This commit is contained in:
Glenn Toms
2020-06-18 15:46:33 +01:00
parent 5f71d1ea01
commit 29d6b359ab
4 changed files with 15 additions and 15 deletions

View File

@@ -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-arm-static
RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
USER ${USER}
COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
EXPOSE ${PORT}
VOLUME [ "/www/config.yml", "/www/assets" ]
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]