File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 1- FROM node:16.6.1-alpine3.13
1+ FROM node:16-alpine
22
3- RUN apk add --no-cache python2 build-base
4-
5-
6- COPY --chown=node:node ./federator /app/federator
7- COPY --chown=node:node ./bridge/abi /app/bridge/abi
8-
9- WORKDIR /app/federator
10-
11- RUN chown -R node:node .
3+ RUN apk add --no-cache build-base git python3
124
5+ WORKDIR /home/node
136USER node
147
8+ COPY --chown=node:node ./federator/package*.json ./federator/
9+ WORKDIR ./federator
1510RUN npm ci
1611
17- ENTRYPOINT [ "npm" , "start" ]
12+ WORKDIR ../
13+ COPY --chown=node:node ./bridge/abi ./bridge/abi/
14+ COPY --chown=node:node ./federator/ ./federator/
15+
16+ WORKDIR ./federator
17+ RUN (cd ./config/ && cp config.sample.js config.js) && \
18+ npx tsc --build
19+
20+ WORKDIR ./built/federator
21+ CMD ["node" , "./src/main.js" ]
You can’t perform that action at this time.
0 commit comments