forked from fuseio/tokenbridge-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
42 lines (31 loc) · 862 Bytes
/
Dockerfile.dev
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM node:10
RUN apt-get update
RUN apt-get install -y netcat
RUN apt-get clean
WORKDIR /contracts
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY ./deploy/package.json ./deploy/
COPY ./deploy/package-lock.json ./deploy/
RUN cd ./deploy; npm install; cd ..
COPY ./upgrade/package.json ./upgrade/
COPY ./upgrade/package-lock.json ./upgrade/
RUN cd ./upgrade; npm install; cd ..
COPY ./scripts ./scripts
COPY truffle-config.js truffle-config.js
COPY ./contracts ./contracts
RUN npm run compile
COPY flatten.sh flatten.sh
RUN bash flatten.sh
COPY .eslintignore .eslintignore
COPY .eslintrc .eslintrc
COPY .prettierrc .prettierrc
COPY ./upgrade ./upgrade
COPY deploy.sh deploy.sh
COPY ./deploy ./deploy
COPY .solhint.json .solhint.json
COPY codechecks.yml codechecks.yml
COPY ./test ./test
ENV PATH="/contracts/:${PATH}"
ENV NOFLAT=true