From aeaaa85e7f76adecddff054f2c289b71b00f721a Mon Sep 17 00:00:00 2001 From: Marc Orfila Carreras Date: Sat, 2 Mar 2024 15:09:07 +0100 Subject: [PATCH] fix: Reduce Docker image size --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 770c92a8..45fdf86f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN yarn install RUN yarn build -FROM python:3.10 +FROM python:3.10-slim WORKDIR /app/swingmusic @@ -28,12 +28,12 @@ VOLUME /music VOLUME /config +RUN apt-get update && apt-get install -y ffmpeg libavcodec-extra gcc-aarch64-linux-gnu + RUN pip install poetry RUN poetry config virtualenvs.create false RUN poetry install -RUN apt-get update && apt-get install -y ffmpeg libavcodec-extra - ENTRYPOINT ["poetry", "run", "python", "manage.py", "--host", "0.0.0.0", "--config", "/config"] \ No newline at end of file