phase 2
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
RUN pip install --no-cache-dir uv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN uv pip install --system --no-cache -r requirements.txt
|
||||
|
||||
# No COPY . . — code is volume-mounted in dev (..:/app)
|
||||
# This image only provides the Python runtime + dependencies
|
||||
# Copy code into image (k8s uses this, docker-compose volume-mounts over it)
|
||||
COPY . .
|
||||
|
||||
CMD ["python", "admin/manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
||||
Reference in New Issue
Block a user