Skip to content

Commit 4020746

Browse files
committed
[UPDATED] - Dependency updated
1 parent 1ef9896 commit 4020746

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
dist
3+
.git
4+
.gitignore
5+
Dockerfile
6+
.github
7+
*.md
8+
artifacts

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
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: |

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM alpine:3.14.10 as builder
1+
FROM node:16-alpine AS builder
22
WORKDIR /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

78
COPY . .
89

9-
RUN yarn install
10-
RUN yarn build
10+
RUN npm run build
1111

1212

1313
FROM nginx:1.21.1-alpine
@@ -16,7 +16,7 @@ COPY --from=builder /app/nginx/ipp.conf /etc/nginx/conf.d/default.conf
1616

1717
EXPOSE 80
1818

19-
CMD nginx -g "daemon off;"
19+
CMD ["nginx", "-g" ,"daemon off;"]
2020

2121

2222

0 commit comments

Comments
 (0)