Skip to content

Commit ace9a8f

Browse files
author
Paulo Guilherme Pinheiro Pereira
committed
Make Containerfile self contained
1 parent 2274194 commit ace9a8f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packaging/container/Containerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Stage 1: Node.js builder
2+
FROM node:lts-alpine3.23 AS builder
3+
4+
WORKDIR /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
7+
8+
# Stage 2: Python/Django
19
FROM almalinux:10-minimal
210

311
RUN microdnf install -y tar gzip
@@ -17,4 +25,5 @@ RUN uv sync --all-extras --frozen
1725

1826

1927
WORKDIR /app
28+
COPY --from=builder /app /app
2029
ENTRYPOINT ["/bin/bash", "-c"]

0 commit comments

Comments
 (0)