We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec8102 commit 577badeCopy full SHA for 577bade
Dockerfile
@@ -11,13 +11,21 @@ RUN yarn build
11
12
###############################################################
13
14
+FROM golang:1.18 as nodeprune
15
+
16
+# Build node-prune from source
17
+RUN go install github.com/tj/node-prune@latest
18
19
+###############################################################
20
21
FROM node:16 as dependencies
22
23
ENV NODE_ENV production
24
COPY package.json yarn.lock ./
25
RUN yarn --production
26
-RUN curl -sf https://gobinaries.com/tj/node-prune | sh
27
+# Copy node-prune binary built from source
28
+COPY --from=nodeprune /go/bin/node-prune /usr/local/bin/node-prune
29
RUN node-prune
30
31
0 commit comments