Spaces:
Sleeping
Sleeping
# Dockerfile | |
FROM python:3.10-slim | |
# Prevent Python from writing .pyc files to disk and buffer stdout/stderr | |
ENV PYTHONDONTWRITEBYTECODE=1 \ | |
PYTHONUNBUFFERED=1 | |
WORKDIR /app | |
# Install dependencies | |
RUN pip install --upgrade pip | |
RUN pip install gradio | |
# Copy your app code | |
COPY app.py . | |
# Expose Gradio’s default port | |
EXPOSE 7860 | |
# Launch the app | |
CMD ["python", "app.py"] | |