Add Docker image and Snapshot commands

This commit is contained in:
Jacob Evans
2018-12-17 12:42:27 +11:00
parent 737d1dc54d
commit 2a577e0475
5 changed files with 55 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
FROM mhart/alpine-node:10
WORKDIR /usr/src/app
RUN npm install -g ganache-cli@6.1.6
COPY 0x_ganache_snapshot ./0x_ganache_snapshot
ENV MNEMONIC "concert load couple harbor equip island argue ramp clarify fence smart topic"
ENV NETWORK_ID 50
EXPOSE 8545
CMD [ "sh", "-c", "ganache-cli --gasLimit 10000000 --db 0x_ganache_snapshot --noVMErrorsOnRPCResponse -p 8545 --networkId \"$NETWORK_ID\" -m \"$MNEMONIC\""]