Spaces:
Running
Running
File size: 376 Bytes
d3abbf7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Gradio Dockerfile
FROM python:3.11.10-slim
ENV PYTHONUNBUFFERED=1
ENV OMP_NUM_THREADS=1
# Set working directory
WORKDIR /app
# Copy app files
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose port
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
# Command to run the Gradio app
CMD ["gradio", "app.py"]
# CMD ["python", "app.py"] |