Spaces:
Sleeping
Sleeping
Subhash Vadaparthi commited on
Commit ·
5912f79
1
Parent(s): fb308b1
Fix Dockerfile CMD and update requirements.txt
Browse filesFiles changed (2)
- Dockerfile+1-7
- requirements.txt+1-1
1234567891011121314151617# Use an official Python runtime as a parent imageFROM python:3.9-slim# Set the working directory in the containerWORKDIR /app# Copy the current directory contents into the container at /appCOPY . /app# Install any needed packages specified in requirements.txtRUN pip install --no-cache-dir -r requirements.txt# Make port 7860 available to the world outside this containerEXPOSE 7860# Run main.py when the container launchesCMD ["python", "app/main.py"]1234567891011FROM python:3.9-slimWORKDIR /appCOPY . /appRUN pip install --no-cache-dir -r requirements.txtEXPOSE 7860CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
1234fastapiuvicornpydantictyping-extensions1234fastapiuvicorn[standard]pydantictyping-extensions
Dockerfile+1-7
requirements.txt+1-1