Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): remove unused install libs on python docker image #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand All @@ -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

Expand Down
Loading