Nomad stuff
Some checks failed
Build and Deploy LifeFAQ / build-image (push) Failing after 3m21s

This commit is contained in:
Henrik Jess Nielsen
2025-10-05 15:54:42 +02:00
parent 0747579dcf
commit f318440572
4 changed files with 145 additions and 53 deletions

View File

@@ -1,20 +1,13 @@
# Base image with Python 3.11
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port the FastAPI app runs on (default Uvicorn port)
EXPOSE 9210
# Port will be set via environment variable
EXPOSE 8000
# Command to run the FastAPI application
CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "9210", "--workers", "1"]
CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "${PORT:-8000}", "--workers", "1"]