-
Notifications
You must be signed in to change notification settings - Fork 0
/
npm.Dockerfile
24 lines (19 loc) · 836 Bytes
/
npm.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
FROM node:10.24-buster AS builder
WORKDIR /home/app
# NPM v7
RUN npm install --global npm
COPY package.json /home/app/
COPY package-lock.json /home/app/
COPY packages/library/package.json /home/app/packages/library/
COPY packages/products/package.json /home/app/packages/products/
COPY packages/collections_page/package.json /home/app/packages/collections_page/
COPY packages/styles_page/package.json /home/app/packages/styles_page/
COPY packages/purchase_orders_page/package.json /home/app/packages/purchase_orders_page/
COPY packages/style_card/package.json /home/app/packages/style_card/
COPY packages/shell/package.json /home/app/packages/shell/
RUN npm ci
COPY . .
RUN npm run single:build
FROM nginx:1.19-alpine
COPY --from=builder /home/app/build /usr/share/nginx/html
COPY nginx.default.conf /etc/nginx/conf.d/default.conf