FROM node:24.5.0-bookworm-slim AS builder WORKDIR /usr/src/build COPY package.json package-lock.json ./ RUN npm install COPY tailwind.config.js ./ COPY templates/ ./templates/ COPY static/css/input.css ./static/css/input.css RUN npx tailwindcss -i ./static/css/input.css -o ./static/css/style.css --minify FROM python:3.13.6-slim EXPOSE 5000 WORKDIR /usr/src/app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --no-cache-dir -r requirements.txt COPY . . COPY --from=builder /usr/src/build/static/css/style.css ./static/css/style.css RUN python3 -m pip install -e . CMD [ "gunicorn", "--config", "rstat_tool/gunicorn-cfg.py", "-k", "sync", "rstat_tool.dashboard:app" ]