Skip to content

Commit cc08511

Browse files
committed
replace ADD with COPY
1 parent 36ec584 commit cc08511

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

{{cookiecutter.project_name}}/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
66
WORKDIR /app
77

88
# Copy the lockfile and `pyproject.toml` into the image
9-
ADD uv.lock /app/uv.lock
10-
ADD pyproject.toml /app/pyproject.toml
9+
COPY uv.lock /app/uv.lock
10+
COPY pyproject.toml /app/pyproject.toml
1111

1212
# Install dependencies
1313
RUN uv sync --frozen --no-install-project
1414

1515
# Copy the project into the image
16-
ADD . /app
16+
COPY . /app
1717

1818
# Sync the project
1919
RUN uv sync --frozen
2020

21-
CMD [ "python", "{{cookiecutter.project_slug}}/foo.py"]
21+
CMD [ "python", "{{cookiecutter.project_slug}}/foo.py" ]

0 commit comments

Comments
 (0)