Skip to content

Commit ec50851

Browse files
committed
Move step
1 parent 7f614bc commit ec50851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WORKDIR /app
66
COPY ./Pipfile ./Pipfile.lock ./
77
RUN ["pip", "install", "pipenv"]
88
RUN ["sh", "-c", "pipenv requirements --dev > requirements.txt"]
9+
RUN ["rm", "Pipfile", "Pipfile.lock"]
910

1011
FROM python:3.12 as build
1112

@@ -17,7 +18,6 @@ COPY --from=generate-requirements /app/requirements.txt ./
1718
RUN ["python3", "-m", "venv", "/venv"]
1819
ENV PATH="/venv/bin:$PATH"
1920
RUN ["python3", "-m", "pip", "install", "-r", "requirements.txt"]
20-
RUN ["rm", "Pipfile", "Pipfile.lock"]
2121

2222
FROM python:3.12-slim as production
2323
COPY --from=build /venv /venv

0 commit comments

Comments
 (0)