Skip to content

Commit 999243b

Browse files
committed
fix: update correction step dockerfile
1 parent a80823a commit 999243b

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/.git
2+
**/.github
3+
**/.dockerignore
4+
**/.gitignore
5+
6+
**/.idea
7+
**/.vscode
8+
9+
**/__pycache__
10+
**/.pytest_cache

correction_step/.dockerignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

correction_step/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,24 @@ RUN apt-get update && \
1818

1919
RUN pip install poetry
2020

21+
COPY correction_step/poetry.lock correction_step/pyproject.toml /app/
22+
COPY libs/apf /libs/apf
23+
2124
WORKDIR /app
22-
COPY ./correction_step/poetry.lock ./correction_step/pyproject.toml ./
23-
COPY ../libs/apf ../libs/apf
2425
RUN poetry install --no-root --without=dev --without=test
2526

2627

2728
FROM python:3.10-slim as production
2829
RUN pip install poetry
2930

3031
COPY --from=builder /app/.venv /app/.venv
32+
COPY --from=builder /app/poetry.lock /app/pyproject.toml /app/
3133
COPY --from=builder /libs /libs
3234

33-
WORKDIR /app
34-
COPY ./correction_step ./
35+
COPY correction_step/README.md /app
36+
COPY correction_step/correction /app/correction
3537

38+
WORKDIR /app
3639
RUN poetry install --only-root
3740

3841
CMD ["poetry", "run", "step"]

0 commit comments

Comments
 (0)