Skip to content

Commit

Permalink
Comply to standardization for AS statement in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed May 1, 2024
1 parent f33e9ab commit a85b6d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PYTHON_VERSION=3.11.7-slim

FROM --platform=$BUILDPLATFORM python:${PYTHON_VERSION} as project-base
FROM --platform=$BUILDPLATFORM python:${PYTHON_VERSION} AS project-base

LABEL [email protected] \
organization=MinBZK \
Expand All @@ -27,7 +27,7 @@ COPY ./poetry.lock ./pyproject.toml ./
RUN poetry install --without dev,test
ENV PATH="/app/.venv/bin:$PATH"

FROM project-base as development
FROM project-base AS development

COPY . .
RUN poetry install
Expand All @@ -42,7 +42,7 @@ FROM development AS test
RUN coverage run -m pytest ./tests
RUN coverage report

FROM project-base as production
FROM project-base AS production

COPY ./tad /app/tad

Expand Down

0 comments on commit a85b6d5

Please sign in to comment.