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