diff options
author | Jacob Evans <jacob@dekz.net> | 2018-12-17 09:42:27 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-12-17 12:44:24 +0800 |
commit | 2a577e04750f9f90f72f763b45232dd9b5a35d93 (patch) | |
tree | 5b6837a220835361d7bc92e62c17e81ced6a1dde /packages/migrations/Dockerfile | |
parent | 737d1dc54d72872e24abce5a1dbe1b66d35fa21a (diff) | |
download | dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.gz dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.bz2 dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.lz dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.xz dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.tar.zst dexon-sol-tools-2a577e04750f9f90f72f763b45232dd9b5a35d93.zip |
Add Docker image and Snapshot commands
Diffstat (limited to 'packages/migrations/Dockerfile')
-rw-r--r-- | packages/migrations/Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/migrations/Dockerfile b/packages/migrations/Dockerfile new file mode 100644 index 000000000..ce4d6e867 --- /dev/null +++ b/packages/migrations/Dockerfile @@ -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\""] + |