#14 exporting cache to client directory
#14 preparing build cache for export
#14 writing cache image manifest sha256:5e8c308200493edb13423af4bf1cfbcb7df718bb7de4ba3a85e1d0e7d308654b 0.1s done
#14 DONE 149.2s
Pushing image to registry…
Upload succeeded
==> Deploying…
==> No open ports detected, continuing to scan…
==> Docs on specifying a port: ..
==> No open ports detected, continuing to scan…
==> Docs on specifying a port: –
Tried by including PORT variable.. Not working
Getting above error. Below is my docker file
# =============================
# 1. Base Image
# =============================
FROM python:3.10.18-slim
# Prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# =============================
# 2. System Dependencies
# =============================
RUN apt-get update && apt-get install -y \
curl \
git \
libgl1 \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
# =============================
# 3. Install Ollama
# =============================
# =============================
# =============================
# 5. Working Directory
# =============================
# Inside the Docker container, work inside the folder /app
WORKDIR /app
# Add src root to Python module search path. “Also look inside /app when searching for imports.
ENV PYTHONPATH=/app
# 6. Copy project code (SRC) and requirements
# IMPORTANT: Build context must be project root
# =============================
# Copy the whole src folder so imports like `from src.models …` work
COPY src /app/src
# Copy root-level requirements.txt
COPY requirements.txt /app/requirements.txt
# =============================
# 6. Python Packages
# =============================
# Install Python dependencies
RUN pip install --no-cache-dir -r /app/requirements.txt
# =============================
# 7. Expose FastAPI port
# =============================
EXPOSE 10000
# =============================
# 8. Start Ollama + FastAPI together
# =============================
CMD uvicorn src.backend.main:app --host 0.0.0.0 --port 10000