Skip to content

Commit e3e6134

Browse files
committed
add package-lock
1 parent eeaa585 commit e3e6134

6 files changed

Lines changed: 58343 additions & 9 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ test-report.*
66
junit.xml
77
*.log
88
*.orig
9-
package-lock.json
10-
yarn.lock
119
.awcache
1210
public

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@ ENV BASE_API_URL=$BASE_API_URL
99
ARG BASE_SOCKET_URL
1010
ENV BASE_SOCKET_URL=$BASE_SOCKET_URL
1111
COPY ./front ./
12-
RUN npm install
12+
RUN npm ci
1313
RUN npm run build
1414

1515
# Build backend
1616
FROM base AS build-backend
1717
COPY ./back ./
18-
RUN npm install
18+
RUN npm ci
1919
RUN npm run build
2020

2121
# Release
2222
FROM base AS release
2323
COPY --from=build-backend /usr/app/dist ./
2424
COPY --from=build-frontend /usr/app/dist ./public
2525
COPY ./back/package.json ./
26-
RUN npm install --only=production
26+
COPY ./back/package-lock.json ./
27+
RUN npm ci --only=production
2728

2829
ENTRYPOINT [ "node", "index" ]

back/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ test-report.*
66
junit.xml
77
*.log
88
*.orig
9-
package-lock.json
10-
yarn.lock
119
.awcache
1210
public
1311

0 commit comments

Comments
 (0)