file_extension_change / Dockerfile
euler314's picture
Update Dockerfile
b54b02c verified
raw
history blame
381 Bytes
# 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"]