Skip to content

Commit

Permalink
Merge pull request #41 from cjber/main
Browse files Browse the repository at this point in the history
replace ADD with COPY in Dockerfile
  • Loading branch information
fpgmaas authored Feb 23, 2025
2 parents 22b5377 + cc08511 commit 4f33102
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions {{cookiecutter.project_name}}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
WORKDIR /app

# Copy the lockfile and `pyproject.toml` into the image
ADD uv.lock /app/uv.lock
ADD pyproject.toml /app/pyproject.toml
COPY uv.lock /app/uv.lock
COPY pyproject.toml /app/pyproject.toml

# Install dependencies
RUN uv sync --frozen --no-install-project

# Copy the project into the image
ADD . /app
COPY . /app

# Sync the project
RUN uv sync --frozen

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

0 comments on commit 4f33102

Please sign in to comment.