Spaces:
Paused
Paused
File size: 521 Bytes
abac4f7 1aac448 abac4f7 1aac448 abac4f7 8606016 abac4f7 062b115 abac4f7 062b115 8606016 abac4f7 6c4b041 cfc2089 abac4f7 674c51f abac4f7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Use an official Python image as a base
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port Hypercorn will run on (Hugging Face typically uses 7860)
EXPOSE 7860
# Run the app with Hypercorn
CMD ["hypercorn", "app:app", "--bind", "0.0.0.0:7860"]
|