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.
2 parents b201ad7 + abb643f commit cbf34b6Copy full SHA for cbf34b6
Dockerfile
@@ -1,6 +1,10 @@
1
FROM node:16-alpine3.15 as firefly-dataexchange-builder
2
-ADD . /firefly-dataexchange-https
+ADD --chown=1001:0 . /firefly-dataexchange-https
3
WORKDIR /firefly-dataexchange-https
4
+RUN mkdir /.npm \
5
+ && chgrp -R 0 /.npm \
6
+ && chmod -R g+rwX /.npm
7
+USER 1001
8
RUN npm install
9
RUN npm run build
10
@@ -12,4 +16,6 @@ COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/package*.js
12
16
RUN npm install --production
13
17
EXPOSE 3000
14
18
EXPOSE 3001
19
20
+
15
21
CMD [ "node", "./build/index.js" ]
0 commit comments