Priyanshu Kumar
Switch to Docker SDK for FastAPI app
43c03ea
raw
history blame
280 Bytes
FROM python:3.10
# Set up working directory
WORKDIR /app
# Copy files
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port
EXPOSE 7860
# Start FastAPI using uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]