fix: Dockerfile COPY order for hatch build
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-6
@@ -5,14 +5,12 @@ WORKDIR /app
|
|||||||
# Install uv for fast dependency management
|
# Install uv for fast dependency management
|
||||||
RUN pip install --no-cache-dir uv
|
RUN pip install --no-cache-dir uv
|
||||||
|
|
||||||
# Copy dependency definition first (cache layer)
|
# Copy source
|
||||||
COPY pyproject.toml .
|
COPY pyproject.toml kill_life/ ./
|
||||||
|
COPY kill_life/ ./kill_life/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN uv pip install --system -e "."
|
RUN uv pip install --system .
|
||||||
|
|
||||||
# Copy source
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
EXPOSE 8200
|
EXPOSE 8200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user