File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22FROM node:lts-alpine3.23 AS builder
33
44WORKDIR /app
5- COPY . .
6- RUN npm install && export PATH=./node_modules/.bin:$PATH && npm run build-stylus && npm run build-riot && npm run concat-riot
5+
6+ COPY package.json package-lock.json* ./
7+ COPY src/static ./src/static
8+
9+ RUN npm install \
10+ && export PATH=./node_modules/.bin:$PATH \
11+ && npm run build-stylus \
12+ && npm run build-riot \
13+ && npm run concat-riot
714
815# Stage 2: Python/Django
916FROM almalinux:10-minimal
@@ -23,7 +30,12 @@ COPY pyproject.toml uv.lock ./
2330# Install dependencies
2431RUN uv sync --all-extras --frozen
2532
26-
2733WORKDIR /app
28- COPY --from=builder /app /app
34+
35+ COPY src ./src
36+ COPY manage.py ./
37+
38+ # Copy built static files from Node builder
39+ COPY --from=builder /app/src/static ./src/static
40+
2941ENTRYPOINT ["/bin/bash" , "-c" ]
You can’t perform that action at this time.
0 commit comments