TraeBot
init audience-segmentation-lab
2ae9e73
raw
history blame contribute delete
256 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN useradd -m -u 1000 user
COPY --chown=user . /app
RUN pip install --no-cache-dir flask gunicorn
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]