Files
LifeFaq/Dockerfile
Henrik Jess 191b21f275
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 36s
Loads of boiler plating
2024-12-10 17:20:44 +01:00

20 lines
544 B
Docker

# 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
# Command to run the FastAPI application
CMD ["uvicorn", "app:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "9210", "--workers", "1"]