Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files1234567891011121314151617181920# Use Python 3.9 as the base imageFROM python:3.9
# Create a user to avoid running as rootRUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"
# Set the working directoryWORKDIR /app
# Copy dependencies and install themCOPY --chown=user ./requirements.txt requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the app codeCOPY --chown=user . /app
# Run the FastAPI app using UvicornCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+20