gluco-api / Dockerfile
JulianTekles's picture
Update Dockerfile
7f7388f verified
raw
history blame contribute delete
456 Bytes
FROM python:3.11-slim
WORKDIR /app
# System deps (für git + evtl. crypto/pypdf etc.)
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY . .
# HF sets PORT; fallback 7860
ENV PORT=7860
# Start FastAPI
CMD ["bash", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]