stoic-space / Dockerfile
Ninjani's picture
update
7bb2973
FROM python:3.10-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir \
"stoic @ git+https://github.com/PickyBinders/stoic.git"
RUN pip install --no-cache-dir gradio==6.9.0
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user
COPY --chown=user . .
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]