Patrick Rathje
install from requirements.txt
ff3f7ee
raw
history blame
326 Bytes
FROM python:3.10-slim
# Install Gradio and copy local files
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/public
RUN useradd -m -u 1000 user
RUN chown -R user:user /app
USER user
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]