Pipelinen parannuksia building blockeilla
This commit is contained in:
18
zipit/loop_runs/v2_strict/Dockerfile
Normal file
18
zipit/loop_runs/v2_strict/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
```Dockerfile
|
||||
FROM python:3.12-slim as builder
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml .
|
||||
RUN uv sync
|
||||
|
||||
COPY models.py schemas.py main.py test_main.py .
|
||||
|
||||
USER nonrootuser
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
```
|
||||
Reference in New Issue
Block a user