-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (33 loc) · 971 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM godsflaw/truffle:4.1.14
MAINTAINER Christopher Mooney <[email protected]>
ENV CRICIBLE="/crucible"
# drop codebase
RUN mkdir -p ${CRICIBLE}
ADD .git ${CRICIBLE}/.git
ADD .github ${CRICIBLE}/.github
ADD contracts ${CRICIBLE}/contracts
ADD migrations ${CRICIBLE}/migrations
ADD scripts ${CRICIBLE}/scripts
ADD test ${CRICIBLE}/test
ADD .gitignore ${CRICIBLE}
ADD package-lock.json ${CRICIBLE}
ADD package.json ${CRICIBLE}
ADD truffle.js ${CRICIBLE}
ADD index.js ${CRICIBLE}
ADD env-staging ${CRICIBLE}
ADD env-ropsten ${CRICIBLE}
ADD env-kovan ${CRICIBLE}
ADD env-production ${CRICIBLE}
ADD zos.json ${CRICIBLE}
ADD zos.staging.json ${CRICIBLE}
ADD zos.production.json ${CRICIBLE}
ADD zos.ropsten.json ${CRICIBLE}
ADD zos.kovan.json ${CRICIBLE}
ADD docker ${CRICIBLE}
# install codebase
RUN (cd ${CRICIBLE} && echo 'true' > ./docker && npm install)
# any ports we want to expose
EXPOSE 8545
# run the tests
WORKDIR "${CRICIBLE}"
CMD ["./scripts/crucible", "start"]