докер
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
|
||||
COPY pyproject.toml uv.lock ./
|
||||
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
COPY main.py ./
|
||||
COPY src/ ./src/
|
||||
|
||||
RUN mkdir -p data data_partial
|
||||
|
||||
CMD ["uv", "run", "main.py"]
|
||||
Reference in New Issue
Block a user