forked from erda-project/erda-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 820 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
# syntax = registry.erda.cloud/retag/dockerfile:latest
FROM registry.erda.cloud/erda-x/node:14 AS build
WORKDIR /build
COPY . ./erda-ui
COPY --from=erda-ui-enterprise / /build/erda-ui-enterprise
RUN cd erda-ui/shell && \
npm run extra-logic && \
cd /build/erda-ui && \
npm cache clean --force && \
npm install -g --force [email protected] && \
pnpm install --frozen-lockfile --no-optional --unsafe-perm && \
pnpm run build-online
FROM registry.erda.cloud/erda-x/node:14
WORKDIR /usr/src/app
COPY --from=build /build/erda-ui/public ./public
COPY --from=build /build/erda-ui/scheduler ./scheduler
WORKDIR /usr/src/app/scheduler
ENV NODE_ENV=production
RUN npm install -g [email protected] && \
pnpm install --unsafe-perm --reporter append-only && \
pnpm run build
CMD ["pnpm", "run", "start:prod"]