fastapi-chatbot / Docker
Prathamesh Khade
Deploy new version
5702872
raw
history blame contribute delete
350 Bytes
# Use Python official image
FROM python:3.10
# Set the working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port FastAPI runs on
EXPOSE 7860
# Run the FastAPI app with Uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]