Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files12345678910111213141516171819202122232425# Base image using Python 3.9FROM python:3.9
# Create a new user to run the appRUN useradd -m -u 1000 userUSER user
# Set environment variablesENV PATH="/home/user/.local/bin:$PATH"
# Set the working directoryWORKDIR /app
# Copy the requirements and install dependenciesCOPY --chown=user ./requirements.txt requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the rest of the applicationCOPY --chown=user . /app
# Expose port 7860 for the applicationEXPOSE 7860
# Command to run the FastAPI app using uvicornCMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+25