]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile
Adds mapping remote field to Homer expected ones when loading message from url
[github/bastienwirtz/homer.git] / Dockerfile
index cd3ab118cc5e32906aef57a14312b63745b7af7a..19d01f810aab9ac58277190be5ead17ea4ed9f0e 100644 (file)
@@ -19,12 +19,12 @@ ENV UID 911
 ENV PORT 8080
 
 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
-    apk add -U darkhttpd
+    apk add -U --no-cache su-exec darkhttpd
 
 COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
-COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
+COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
+COPY entrypoint.sh /entrypoint.sh
 
-USER ${USER}
 EXPOSE ${PORT}
-VOLUME [ "/www/config.yml", "/www/assets" ]
+VOLUME /www/assets
 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]