diff options
Diffstat (limited to 'api/Dockerfile')
| -rw-r--r-- | api/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/api/Dockerfile b/api/Dockerfile index e69de29..5119feb 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.14-slim +ENV PYTHONUNBUFFERED=1 + +WORKDIR /api + +RUN useradd \ + --shell /sbin/nologin \ + --uid 10001 \ + --no-create-home \ + api-usr + +COPY requirements.txt . + +RUN python -m pip install -r requirements.txt + +USER api-usr + +COPY . . + +CMD ["fastapi", "run", "main.py", "--port", "80"] |
