InstaFuel_Chatbot_public/Dockerfile
2026-04-21 11:57:37 +05:30

23 lines
507 B
Docker

FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose FastAPI port
EXPOSE 8080
# Run the application
# Note: We use 8080 as it's the default for Cloud Run
CMD ["uvicorn", "src.api.server:app", "--host", "0.0.0.0", "--port", "8080"]