Added Dockerfile

This commit is contained in:
Tim Staat 2026-05-19 15:33:50 +02:00
parent c976809c1e
commit 0643f781a6

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM python:3.13
WORKDIR /usr/local/app
COPY server/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY server/python_server.py
EXPOSE 8080
RUN useradd app
USER app
CMD ["gunicorn", "-w", "4", "python_server:app", "--bind", "0.0.0.0:8080"]