web-scraper-restart / Dockerfile
Pamudu13's picture
Create Dockerfile
a099086 verified
raw
history blame
520 Bytes
# 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"]