This repository has been archived on 2026-07-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-05-20 23:26:11 +01:00

19 lines
558 B
Docker

FROM node:22-bookworm-slim AS frontend
WORKDIR /build
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
COPY frontend/ ./
RUN npm run build
FROM python:3.14-slim
LABEL org.opencontainers.image.vendor="JDB-NET"
WORKDIR /app
ARG VERSION=unknown
ENV VERSION=${VERSION}
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
COPY --from=frontend /static/dist /app/static/dist
ENV GEVENT_MONKEY_PATCH=1
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "app:app", "--log-level", "warning"]