File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed
Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ RUN apk update && apk --no-cache upgrade && apk add --no-cache \
2323 tcpdump
2424
2525COPY . .
26- COPY ../package.json /tmp/root-package.json
27- COPY ./package.json /tmp/app-package.json
28-
29- # Merge package.json files
30- RUN jq -s '.[0] * .[1]' /tmp/root-package.json /tmp/app-package.json > /tmp/merged-package.json
31-
32- COPY /tmp/merged-package.json /usr/src/app/package.json
3326
3427RUN yarn workspace @libertech-fr/teaket_app install \
3528 --prefer-offline \
Original file line number Diff line number Diff line change @@ -3,16 +3,6 @@ FROM node:18.14.0-alpine AS builder
33WORKDIR /usr/src/app
44
55COPY . .
6- COPY ../package.json /tmp/root-package.json
7- COPY ./package.json /tmp/service-package.json
8-
9- # Install jq
10- RUN apk update && apk --no-cache upgrade && apk add --no-cache jq
11-
12- # Merge package.json files
13- RUN jq -s '.[0] * .[1]' /tmp/root-package.json /tmp/service-package.json > /tmp/merged-package.json
14-
15- COPY /tmp/merged-package.json /usr/src/app/package.json
166
177RUN apk add git && yarn workspace @libertech-fr/teaket_service install \
188 --prefer-offline \
@@ -30,27 +20,22 @@ ENV NODE_ENV=${NODE_ENV}
3020WORKDIR /usr/src/app
3121
3222# ADD Makefile .
33- # ADD package.json .
23+ ADD package.json .
3424ADD *.lock .
3525
36- COPY --from=builder /usr/src/app/package.json ./package.json
37-
3826RUN apk add --no-cache \
3927 openssl \
4028 git \
4129 jq \
4230 nano
4331
44- # Merge package.json files
45-
46-
4732RUN yarn install \
4833 --prefer-offline \
4934 --pure-lockfile \
5035 --non-interactive \
5136 --production=true
5237
53- # COPY . .
38+ # COPY . .
5439
5540COPY --from=builder /usr/src/app/service/dist ./dist
5641COPY ./service/views ./views
You can’t perform that action at this time.
0 commit comments