Skip to content

Commit f3c2691

Browse files
Update Dockerfile
1 parent 5027a5b commit f3c2691

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ RUN apk update && apk --no-cache upgrade && apk add --no-cache \
2323
tcpdump
2424

2525
COPY . .
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
2633

2734
RUN yarn install \
2835
--prefer-offline \

0 commit comments

Comments
 (0)