KomaAl's picture
Create Dockerfile
dc90148 verified
raw
history blame
330 Bytes
FROM python:3.10
# Install dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Force correct Gradio version
RUN pip install --no-cache-dir --upgrade gradio==4.44.1
# Copy app code
COPY . /app
WORKDIR /app
# Expose Space port
ENV PORT=7860
CMD ["python", "app.py"]