Skip to content

Commit

Permalink
Refactor Dockerfile to improve copy command
Browse files Browse the repository at this point in the history
This commit updates the Dockerfile to be more specific in copying files to the container. Instead of copying all files from the current directory, it selectively copies only the src directory and a couple of necessary files. This change improves the organization and build efficiency of the Docker container.
  • Loading branch information
dvershinin committed Mar 17, 2024
1 parent f113506 commit 4d3f8bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ FROM python:3.9-alpine
WORKDIR /app

# Copy the source code into the container
COPY . .
COPY src ./src/
COPY setup.py README.md ./

# Install the application and its dependencies
RUN pip install -e .
Expand Down

0 comments on commit 4d3f8bf

Please sign in to comment.