We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8285a7 commit 336bd0bCopy full SHA for 336bd0b
packages/core/examples/simple-asset-transfer/fabric/api/Dockerfile
@@ -1,7 +1,9 @@
1
-FROM node:10-alpine
+FROM node:10-slim
2
3
-RUN apk update
4
-RUN apk add python3-dev libstdc++ g++ make
+RUN apt-get update && apt-get install -y \
+ build-essential \
5
+ python-minimal \
6
+ software-properties-common
7
8
ADD ./api /src
9
ADD ./contracts /contracts
@@ -11,7 +13,10 @@ WORKDIR /src
11
13
12
14
RUN npm install
15
16
+# Rebuild node modules inside container to compile platform specific dependencies
17
+RUN npm rebuild
18
+
19
ENV HOST 0.0.0.0
20
ENV PORT 4000
21
-CMD ["node", "app"]
22
+CMD ["node", "app.js"]
0 commit comments