]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile
Added entrypoint script and Dockerfile port&volume
[github/bastienwirtz/homer.git] / Dockerfile
index 73519e0f5ac52e6aa5ba69f25d622d43d7aa958b..cd3ab118cc5e32906aef57a14312b63745b7af7a 100644 (file)
@@ -21,12 +21,10 @@ ENV PORT 8080
 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
     apk add -U darkhttpd
 
-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"]