File size: 434 Bytes
a6b2fb2 c23a54f a6b2fb2 e04cffe a6b2fb2 e04cffe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use official Python image as base
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy application files
COPY main.py .
COPY requirements.txt .
# Install dependencies
RUN pip install -r requirements.txt
# Expose the port the app runs on
EXPOSE 7860
# Command to run the application
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|