Commit 0f0d3c49 authored by Kostas Chartsias's avatar Kostas Chartsias Committed by Kostas Chartsias
Browse files

Dockerfile for Dummy backend

parent 486ae3a9
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
# Use an official Python runtime as a parent image
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy requirements first (for efficient caching)
COPY requirements.txt .

# Install dependencies
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY . .

# Use environment variables for configuration
# (Defaults can be overridden via docker run or compose)
ENV API_HOST=0.0.0.0
ENV API_PORT=8081

# Command to run the API
CMD ["python", "app.py"]