Skip to content

Commit 3d162ec

Browse files
committed
Refactor Dockerfile to streamline file copying and installation process
1 parent 664e78d commit 3d162ec

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,18 @@ RUN apt-get update && \
1717

1818
# Copy requirements first (for better caching)
1919
COPY requirements.txt .
20-
COPY setup.py .
21-
COPY setup.cfg .
22-
COPY pyproject.toml .
23-
COPY MANIFEST.in .
24-
COPY README.md .
2520

2621
# Install Python dependencies
2722
RUN pip install --no-cache-dir --upgrade pip && \
2823
pip install --no-cache-dir -r requirements.txt && \
2924
pip install --no-cache-dir hypercorn>=0.18.0
3025

31-
# Copy source code
32-
COPY src/ ./src/
26+
# Copy all application files
27+
COPY . .
3328

34-
# Install the package in development mode
29+
# Install the package
3530
RUN pip install --no-cache-dir -e .
3631

37-
# Copy application code
38-
COPY . .
39-
4032
# Make start script executable
4133
RUN chmod +x start.sh
4234

0 commit comments

Comments
 (0)