Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files12345678910111213141516171819202122# Use a lightweight Python imageFROM python:3.10-slim
# Set up a new user to avoid running as rootRUN useradd -m -u 1000 userUSER userENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Copy your local files (app.py and requirements.txt) into the containerCOPY --chown=user . .
# Install the dependenciesRUN pip install --no-cache-dir -r requirements.txt
# Expose the port Gradio usesEXPOSE 7860
# Command to start the appCMD ["python", "app.py"]DockerfileAdded+22