chore: 🤖 cleanup dist folder after image is built (#1649)
authorJozef Kruszynski <60214390+jozefKruszynski@users.noreply.github.com>
Wed, 4 Sep 2024 11:40:08 +0000 (13:40 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 11:40:08 +0000 (13:40 +0200)
Dockerfile

index 82757cdbc3b1ba0f5ed8a00cbfe389d429bc6ee5..c9352afefd531a80df0efcf0b9e1694040beb21a 100644 (file)
@@ -11,8 +11,6 @@ FROM ghcr.io/music-assistant/base:$BASE_IMAGE_VERSION
 ARG MASS_VERSION
 ARG TARGETPLATFORM
 ADD dist dist
-RUN ls -al dist
-
 # Install Music Assistant from prebuilt wheel
 RUN uv pip install \
     --system \
@@ -35,6 +33,8 @@ LABEL \
     io.hass.platform="${TARGETPLATFORM}" \
     io.hass.type="addon"
 
+RUN rm -rf dist    
+
 VOLUME [ "/data" ]
 EXPOSE 8095