From 7a40f3c473f062c61c7e817752e6c39a90d6e899 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Wed, 6 Sep 2023 12:25:41 -0300 Subject: [PATCH] feat(build): remove unused install libs on python docker image --- Dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84bde1b3..d9211ef0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,13 +29,6 @@ ENV PYTHONUNBUFFERED=1 \ # Install system packages required by Django CMS and Django. RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \ build-essential \ - cargo \ - libssl-dev \ - libffi-dev \ - sox \ - ffmpeg \ - libcairo2 \ - libcairo2-dev \ python3-dev \ && rm -rf /var/lib/apt/lists/* @@ -49,8 +42,10 @@ RUN pip install -r requirements.txt # Use /app folder as a directory where the source code is stored. WORKDIR /app +COPY . . + # Copy the source code of the project into the container. -COPY --from=node-builder /app ./ +COPY --from=node-builder /app/tailwind/static/css ./app/tailwind/static/ RUN python manage.py collectstatic --noinput --clear -i tailwindcss