File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ .git
4+ .gitignore
5+ Dockerfile
6+ .github
7+ * .md
8+ artifacts
Original file line number Diff line number Diff line change 3434 ${{ runner.os }}-
3535
3636 # Install the project's Node.js dependencies
37- - run : npm install
37+ - run : npm ci
3838 - run : mkdir artifacts
3939 - name : create tarball # create .tar.gz containing project files,excluding artifacts folder and .git
4040 run : |
Original file line number Diff line number Diff line change 1- FROM alpine:3.14.10 as builder
1+ FROM node:16-alpine AS builder
22WORKDIR /app
33
4- RUN apk update
5- RUN apk add --no-cache yarn git
4+ COPY package.json package-lock.json ./
5+ RUN npm ci
6+
67
78COPY . .
89
9- RUN yarn install
10- RUN yarn build
10+ RUN npm run build
1111
1212
1313FROM nginx:1.21.1-alpine
@@ -16,7 +16,7 @@ COPY --from=builder /app/nginx/ipp.conf /etc/nginx/conf.d/default.conf
1616
1717EXPOSE 80
1818
19- CMD nginx -g "daemon off;"
19+ CMD [ " nginx" , "-g" , "daemon off;" ]
2020
2121
2222
You can’t perform that action at this time.
0 commit comments