RichardAns's picture
Update Dockerfile
8f5d4d3 verified
raw
history blame contribute delete
373 Bytes
# Use official Python image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy dependencies
COPY requirements.txt .
# Install dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy all app files
COPY . .
# Expose the port
EXPOSE 7860
# Run the app with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]