update dockerfile
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,7 +1,15 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Copy dependency management files
|
||||
COPY pyproject.toml uv.lock ./
|
||||
|
||||
# Install uv and dependencies
|
||||
RUN pip install uv && uv sync
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Command to run the application
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user