summaryrefslogtreecommitdiff
path: root/api/Dockerfile
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-11-02 21:23:02 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-11-02 21:23:02 -0300
commit9e5e5da02b4a9704543e0efd7eb568b31a77a369 (patch)
treed5929d84620b4eaa87c63a82c8b70c3c4d63a6a2 /api/Dockerfile
parentc3a884f12c1d7b6bc286e14bf0f8af2d99dad542 (diff)
list locations
Diffstat (limited to 'api/Dockerfile')
-rw-r--r--api/Dockerfile20
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"]