fille-bot / backend /Dockerfile
Aravind GM
as
4969e07
raw
history blame contribute delete
460 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim-bullseye
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 8000 for the FastAPI app
EXPOSE 8000
# Run the FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]