forked from hyperledger/firefly-dataexchange-https
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (14 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
15 lines (14 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM node:14-alpine3.11 as firefly-dataexchange-builder
RUN apk add --update python make
ADD . /firefly-dataexchange-https
WORKDIR /firefly-dataexchange-https
RUN npm install
RUN npm run build
FROM node:14-alpine3.11
WORKDIR /firefly-dataexchange-https
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/package.json /firefly-dataexchange-https
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/build /firefly-dataexchange-https/build
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/node_modules /firefly-dataexchange-https/node_modules
EXPOSE 3000
EXPOSE 3001
CMD [ "node", "./build/index.js" ]