Add Docker image and Snapshot commands
This commit is contained in:
13
packages/migrations/Dockerfile
Normal file
13
packages/migrations/Dockerfile
Normal 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\""]
|
||||
|
||||
Reference in New Issue
Block a user