-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 644 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM node:20-alpine as builder
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm i
# build demo
WORKDIR /app/demo
COPY ./demo .
RUN npm i
RUN npm run build -- --base=/demo
# build web-ifc-babylon
WORKDIR /app/web-ifc-babylon
COPY ./web-ifc-babylon/example .
RUN npm i
RUN npm run build -- --base=/web-ifc-babylon
# build village
WORKDIR /app/village
COPY ./village .
RUN npm i
RUN npm run build -- --base=/village
FROM pierrezemb/gostatic
COPY --from=builder /app/web-ifc-babylon/dist /srv/http/web-ifc-babylon
COPY --from=builder /app/demo/dist/ /srv/http/demo
COPY --from=builder /app/village/dist/ /srv/http/village