Skip to content

Commit

Permalink
Update Dockerfile to use slim version of Python 3.10.14 for all stages
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters committed Aug 20, 2024
1 parent dd521e2 commit 0fe2f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM} python:3.10.14 as test
FROM --platform=${BUILDPLATFORM} python:3.10.14-slim as test
RUN apt-get update && apt-get install -y build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& python -m venv /venv \
Expand All @@ -14,7 +14,7 @@ RUN "${VIRTUAL_ENV}/bin/pip" install --no-cache-dir -r requirements-dev.txt
RUN make test-all


FROM --platform=${BUILDPLATFORM} python:3.10.14 as builder
FROM --platform=${BUILDPLATFORM} python:3.10.14-slim as builder
RUN apt-get update && apt-get install -y build-essential libpcre3 libpcre3-dev \
&& rm -rf /var/lib/apt/lists/* \
&& python -m venv /venv \
Expand Down

0 comments on commit 0fe2f2f

Please sign in to comment.