k3s_hello_world/Dockerfile
2025-08-25 06:54:22 -05:00

10 lines
314 B
Docker

FROM python:3.12-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
RUN pip install -U pip && adduser --disabled-password --gecos '' app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
USER app
EXPOSE 8080
CMD ["gunicorn","-w","2","-b","0.0.0.0:8080","app:app"]