Skip to content

Commit

Permalink
remove dockerignore from the image (#12)
Browse files Browse the repository at this point in the history
We can remove the line `ADD .dockerignore .` from the Dockerfile. The .dockerignore file is only used to exclude files from the build context and doesn’t need to be included in the final image
  • Loading branch information
mgaitan authored Sep 4, 2024
1 parent ebb1701 commit 388e267
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ FROM python:3.12-slim-bookworm
# Install uv
COPY --from=ghcr.io/astral-sh/uv:0.3.3 /uv /bin/uv

# Install the project with intermediate layers
ADD .dockerignore .

# First, install the dependencies
WORKDIR /app
ADD uv.lock /app/uv.lock
Expand Down

0 comments on commit 388e267

Please sign in to comment.