Skip to content

Commit 336bd0b

Browse files
committed
fix(ci): eliminate seg faults on CircleCI
Signed-off-by: Peter Somogyvari <[email protected]>
1 parent c8285a7 commit 336bd0b

File tree

1 file changed

+9
-4
lines changed
  • packages/core/examples/simple-asset-transfer/fabric/api

1 file changed

+9
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM node:10-alpine
1+
FROM node:10-slim
22

3-
RUN apk update
4-
RUN apk add python3-dev libstdc++ g++ make
3+
RUN apt-get update && apt-get install -y \
4+
build-essential \
5+
python-minimal \
6+
software-properties-common
57

68
ADD ./api /src
79
ADD ./contracts /contracts
@@ -11,7 +13,10 @@ WORKDIR /src
1113

1214
RUN npm install
1315

16+
# Rebuild node modules inside container to compile platform specific dependencies
17+
RUN npm rebuild
18+
1419
ENV HOST 0.0.0.0
1520
ENV PORT 4000
1621

17-
CMD ["node", "app"]
22+
CMD ["node", "app.js"]

0 commit comments

Comments
 (0)