generated from MinBZK/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comply to standardization for AS statement in Dockerfile
- Loading branch information
1 parent
f33e9ab
commit a85b6d5
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|