]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile.arm32v7
Added entrypoint script and Dockerfile port&volume
[github/bastienwirtz/homer.git] / Dockerfile.arm32v7
index 952ecb7b0db8e8f375e1868c195344a9d99e8298..ef01d1fb2dbf1dc3ba5a21e0c30a743990d7a0fc 100644 (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
-
-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"]