playwebit-t5-api / Dockerfile
mike23415's picture
Update Dockerfile
83be853 verified
raw
history blame
386 Bytes
# Use official Python image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application
COPY . .
# Expose the application port
EXPOSE 7860
# Command to run the application
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]