fix: Reduce Docker image size

This commit is contained in:
Marc Orfila Carreras
2024-03-02 15:09:07 +01:00
parent a73410a7df
commit aeaaa85e7f
+3 -3
View File
@@ -14,7 +14,7 @@ RUN yarn install
RUN yarn build RUN yarn build
FROM python:3.10 FROM python:3.10-slim
WORKDIR /app/swingmusic WORKDIR /app/swingmusic
@@ -28,12 +28,12 @@ VOLUME /music
VOLUME /config VOLUME /config
RUN apt-get update && apt-get install -y ffmpeg libavcodec-extra gcc-aarch64-linux-gnu
RUN pip install poetry RUN pip install poetry
RUN poetry config virtualenvs.create false RUN poetry config virtualenvs.create false
RUN poetry install 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"] ENTRYPOINT ["poetry", "run", "python", "manage.py", "--host", "0.0.0.0", "--config", "/config"]