VelanAI / Dockerfile
dcsvelan's picture
Initial commit for FastAPI backend
2e13a13
Raw History Blame Contribute Delete
522 Bytes
# Use a lightweight base image with Python 3.11
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file to the container
COPY requirements.txt .
# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all backend files into the container
COPY . .
# Expose port 8000 for the FastAPI backend
EXPOSE 8000
# Command to run the FastAPI backend using uvicorn
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"]