File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 103103
104104# documentation
105105docs
106+
107+ # Node
108+ node_modules
Original file line number Diff line number Diff line change 5454
5555 - name : Login to DockerHub
5656 if : github.event_name == 'push'
57- uses : docker/login-action@v1
57+ uses : docker/login-action@v3
5858 with :
5959 username : ${{ secrets.DOCKERHUB_USERNAME }}
6060 password : ${{ secrets.DOCKERHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ FROM node:22-slim AS frontend
2+
3+ WORKDIR /app
4+ COPY package.json package-lock.json ./
5+ RUN npm ci
6+ COPY octobot_script/resources/report/ octobot_script/resources/report/
7+ COPY vite.config.ts tsconfig*.json ./
8+ RUN npm run build
9+
110FROM python:3.13-slim-bullseye AS base
211
312WORKDIR /app
@@ -7,6 +16,7 @@ RUN apt-get update \
716 && apt-get install -y --no-install-recommends build-essential git gcc binutils
817
918COPY . .
19+ COPY --from=frontend /app/octobot_script/resources/report/dist/ octobot_script/resources/report/dist/
1020
1121RUN pip3 install --no-cache-dir -U setuptools wheel pip \
1222 && pip3 install --no-cache-dir -r requirements.txt \
Original file line number Diff line number Diff line change 2121
2222
2323def _build_report ():
24+ if os .path .isfile (REPORT_DIST ):
25+ print (f"[report] Pre-built bundle found → { REPORT_DIST } , skipping JS build." )
26+ return
27+
2428 npm = "npm"
2529
2630 print ("[report] Installing JS dependencies…" )
You can’t perform that action at this time.
0 commit comments