KSvend Claude Happy commited on
Commit ·
e1c58d4
1
Parent(s): 3b71d95
fix: optimize Dockerfile with --prefer-binary for faster builds
Browse filesGenerated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -9,9 +9,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 9 |
proj-bin \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
| 12 |
COPY pyproject.toml .
|
| 13 |
-
|
|
|
|
| 14 |
|
|
|
|
| 15 |
COPY app/ app/
|
| 16 |
COPY frontend/ frontend/
|
| 17 |
|
|
|
|
| 9 |
proj-bin \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Install dependencies first (cached layer)
|
| 13 |
COPY pyproject.toml .
|
| 14 |
+
COPY app/__init__.py app/__init__.py
|
| 15 |
+
RUN pip install --no-cache-dir --prefer-binary .
|
| 16 |
|
| 17 |
+
# Copy application code
|
| 18 |
COPY app/ app/
|
| 19 |
COPY frontend/ frontend/
|
| 20 |
|