forked from mojaloop/ml-testing-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 801 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM node:12.16.0-alpine AS builder
WORKDIR /opt/mojaloop-testing-toolkit
RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake \
&& cd $(npm root -g)/npm \
&& npm config set unsafe-perm true \
&& npm install -g node-gyp
COPY package.json package-lock.json* /opt/mojaloop-testing-toolkit/
RUN npm install
RUN npm install -g bunyan
COPY src /opt/mojaloop-testing-toolkit/src
COPY spec_files /opt/mojaloop-testing-toolkit/spec_files
COPY examples /opt/mojaloop-testing-toolkit/examples
COPY secrets /opt/mojaloop-testing-toolkit/secrets
FROM node:12.16.0-alpine
WORKDIR /opt/mojaloop-testing-toolkit
COPY --from=builder /opt/mojaloop-testing-toolkit .
RUN npm prune --production
EXPOSE 5000
EXPOSE 5050
CMD ["npm", "run", "start", "|bunyan"]