Files
LifeFaq/Dockerfile
Henrik Jess Nielsen f318440572
Some checks failed
Build and Deploy LifeFAQ / build-image (push) Failing after 3m21s
Nomad stuff
2025-10-05 15:54:42 +02:00

13 lines
296 B
Docker

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Port will be set via environment variable
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "${PORT:-8000}", "--workers", "1"]