Pipelinen parannuksia building blockeilla
This commit is contained in:
32
zipit/rest_api_check/prompts/7_tester_dockerfile.md
Normal file
32
zipit/rest_api_check/prompts/7_tester_dockerfile.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 7 — DevOps (tester) — Dockerfile
|
||||
|
||||
**Malli:** `template`
|
||||
|
||||
## System Prompt
|
||||
|
||||
```
|
||||
(template pipeline — ei LLM-promptia)
|
||||
```
|
||||
|
||||
## Syöte
|
||||
|
||||
```
|
||||
Generated from spec: ["User"]
|
||||
```
|
||||
|
||||
## Tulos
|
||||
|
||||
```
|
||||
FROM python:3.12-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
||||
ENV UV_CACHE_DIR=/tmp/uv-cache
|
||||
WORKDIR /app
|
||||
COPY pyproject.toml .
|
||||
RUN uv sync
|
||||
COPY *.py .
|
||||
RUN useradd -m appuser && chown -R appuser:appuser /app /tmp/uv-cache
|
||||
USER appuser
|
||||
EXPOSE 8000
|
||||
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user