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"]