mirror of
https://github.com/vee1e/InstaFuel_Chatbot_public.git
synced 2026-09-01 18:57:24 +00:00
23 lines
507 B
Docker
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"]
|