Spaces:
Sleeping
Sleeping
babu commited on
Create Dockerfile
Browse files123456789101112131415161718192021# Use a slim Python base imageFROM python:3.11-slim
# Ensure pip is up-to-dateRUN pip install --no-cache-dir --upgrade pip
# Create workdirWORKDIR /app
# Copy dependency list and installCOPY requirements.txt /app/RUN pip install --no-cache-dir -r requirements.txt
# Copy app codeCOPY api /app/api
# Spaces expect the app to listen on port 7860EXPOSE 7860
# Start via gunicorn, binding to 0.0.0.0:7860CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "api.app:app"]DockerfileAdded+21