-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (22 loc) · 972 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
29
30
31
32
33
# Build stage
FROM node:22.11.0-alpine3.20 AS builder
WORKDIR /app
COPY package.json package-lock.json .
COPY examples/react/package.json examples/react/package.json
COPY examples/vue/package.json examples/vue/package.json
COPY examples/svelte/package.json examples/svelte/package.json
COPY examples/vanilla/package.json examples/vanilla/package.json
COPY website/package.json website/package.json
COPY packages/core/package.json packages/core/package.json
COPY packages/react/package.json packages/react/package.json
COPY packages/svelte/package.json packages/svelte/package.json
COPY packages/vue/package.json packages/vue/package.json
COPY packages/vanilla/package.json packages/vanilla/package.json
RUN npm i
COPY . .
RUN npm run build && npm run build-examples && npm run build-website
# Production stage
FROM nginx:1.26.2-alpine3.20-slim
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/website/dist /usr/share/nginx/html
EXPOSE 80