From 9e5e5da02b4a9704543e0efd7eb568b31a77a369 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 2 Nov 2025 21:23:02 -0300 Subject: list locations --- api/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'api/Dockerfile') 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"] -- cgit v1.2.3