Skip to content

Commit

Permalink
Move python version from arguments to layer definition
Browse files Browse the repository at this point in the history
  • Loading branch information
burakince committed Feb 9, 2025
1 parent bd56b23 commit d7cfcbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ARG PYTHON_VERSION=3.12.8
# Stage 1: Build and dependencies
FROM python:${PYTHON_VERSION} AS foundation
FROM python:3.12.8 AS foundation

LABEL maintainer="Burak Ince <[email protected]>"

Expand Down Expand Up @@ -45,7 +44,7 @@ RUN python -m pip install --upgrade pip --no-cache-dir && \
RUN poetry install --no-root --only main

# Stage 2: Final slim image
FROM python:${PYTHON_VERSION}-slim
FROM python:3.12.8-slim

LABEL maintainer="Burak Ince <[email protected]>"

Expand Down

0 comments on commit d7cfcbd

Please sign in to comment.