From 388e267c209534b2130d78ba034265a044a3b0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gait=C3=A1n?= Date: Wed, 4 Sep 2024 12:28:20 -0300 Subject: [PATCH] remove dockerignore from the image (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2800197..8aeaceb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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