FASTAPI / Dockerfile
Ezhil
second commit
e04cffe
raw
history blame contribute delete
434 Bytes
# 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"]