chat-assist-pro / Dockerfile
Jayanth-MKV's picture
Update Dockerfile
59d2b67 verified
raw
history blame contribute delete
536 Bytes
# Use an official Python runtime as the base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install the required packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the FastAPI app code into the container
COPY app.py .
COPY faq.json .
COPY index.html .
# Expose the port that the app runs on
EXPOSE 8000
# Command to run the FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]