Skip to content

Commit

Permalink
fix(ci): eliminate seg faults on CircleCI
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Mar 2, 2020
1 parent c8285a7 commit 336bd0b
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:10-alpine
FROM node:10-slim

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

ADD ./api /src
ADD ./contracts /contracts
Expand All @@ -11,7 +13,10 @@ WORKDIR /src

RUN npm install

# Rebuild node modules inside container to compile platform specific dependencies
RUN npm rebuild

ENV HOST 0.0.0.0
ENV PORT 4000

CMD ["node", "app"]
CMD ["node", "app.js"]

0 comments on commit 336bd0b

Please sign in to comment.