forked from compound-finance/compound-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 675 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
FROM mhart/alpine-node:13.8.0
RUN apk update && apk add --no-cache --virtual build-dependencies git python g++ make
RUN wget https://github.com/ethereum/solidity/releases/download/v0.5.16/solc-static-linux -O /bin/solc && chmod +x /bin/solc
RUN mkdir -p /compound-protocol
WORKDIR /compound-protocol
# First add deps
ADD ./package.json /compound-protocol
ADD ./yarn.lock /compound-protocol
RUN yarn install --lock-file
# Then rest of code and build
ADD . /compound-protocol
ENV SADDLE_SHELL=/bin/sh
ENV SADDLE_CONTRACTS="contracts/*.sol contracts/**/*.sol"
RUN npx saddle compile
RUN apk del build-dependencies
RUN yarn cache clean
CMD while :; do sleep 2073600; done