Skip to content

Commit c376d22

Browse files
committed
fix: trailing slash
1 parent 71e75b3 commit c376d22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN apt-get update \
2222

2323
RUN update-ca-certificates
2424

25+
# set working directory once, use relative paths from "./"
2526
RUN mkdir -p /code
2627
WORKDIR /code
2728

@@ -41,11 +42,11 @@ RUN python -m venv $POETRY_HOME
4142

4243
RUN $POETRY_HOME/bin/pip install poetry==2.1.3
4344

44-
COPY pyproject.toml poetry.lock .
45+
COPY pyproject.toml poetry.lock ./
4546

4647
RUN $POETRY_HOME/bin/poetry install --compile --no-root
4748

48-
COPY ./ /code/
49+
COPY ./ ./
4950

5051
RUN $POETRY_HOME/bin/poetry install --compile --only-root
5152

0 commit comments

Comments
 (0)