# Production image for ConfigBox.
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
# The app is started exactly as in development, with the built-in server.
#   docker run --rm -p 127.0.0.1:5000:5000 configbox
CMD ["flask", "--app", "app:create_app", "run", "--host", "0.0.0.0", "--port", "5000", "--debug"]
