Commit fa58272 1 parent bc56752 commit fa58272 Copy full SHA for fa58272
File tree 2 files changed +24
-9
lines changed
2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM node:16
2
1
2
+ FROM ubuntu:20.04 as base
3
+ RUN apt-get update && apt-get -y install bash curl
4
+ RUN curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
5
+ RUN bash /tmp/nodesource_setup.sh
6
+ RUN apt install nodejs
7
+
8
+
9
+
10
+ FROM base as builder
11
+ RUN apt-get update && apt-get -y install wget
3
12
COPY package*.json /usr/src/app/
4
- WORKDIR /usr/src/app
5
- RUN npm install
13
+ WORKDIR /usr/src/app/
14
+ ENV NODE_ENV=production
15
+ RUN npm ci
16
+
6
17
18
+ FROM base as runner
19
+ ENV NODE_ENV=production
7
20
COPY . /usr/src/app
21
+ WORKDIR /usr/src/app/
22
+ COPY --from=builder /usr/src/app/node_modules/ /usr/src/app/node_modules/
8
23
ENV DEPLOY_SUBGRAPH=true
9
24
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 46
46
"changelog" : " auto-changelog -p"
47
47
},
48
48
"devDependencies" : {
49
- "@graphprotocol/graph-cli" : " ^0.38.0" ,
50
- "@graphprotocol/graph-ts" : " ^0.30.0" ,
51
49
"@types/chai" : " ^4.3.5" ,
52
50
"@types/chai-spies" : " ^1.0.3" ,
53
51
"@types/mocha" : " ^10.0.1" ,
71
69
"ts-node" : " ^10.9.1" ,
72
70
"ts-node-dev" : " ^2.0.0" ,
73
71
"ts-node-register" : " ^1.0.0" ,
74
- "typescript" : " ^5.0.4"
75
- },
76
- "dependencies" : {
77
- "@oceanprotocol/contracts" : " ^1.1.14" ,
72
+ "typescript" : " ^5.0.4" ,
78
73
"@oceanprotocol/lib" : " ^2.7.0" ,
79
74
"cross-fetch" : " ^3.1.6" ,
80
75
"ethereumjs-util" : " ^7.1.5"
81
76
},
77
+ "dependencies" : {
78
+ "@oceanprotocol/contracts" : " ^1.1.14" ,
79
+ "@graphprotocol/graph-cli" : " ^0.38.0" ,
80
+ "@graphprotocol/graph-ts" : " ^0.30.0"
81
+ },
82
82
"repository" : {
83
83
"type" : " git" ,
84
84
"url" : " git+https://github.com/oceanprotocol/ocean-subgraph.git"
You can’t perform that action at this time.
0 commit comments