Skip to content

Commit

Permalink
Merge pull request #18 from delta-mpc/migrate_delta
Browse files Browse the repository at this point in the history
change Dockerfile to make build success
  • Loading branch information
mh739025250 authored Nov 11, 2022
2 parents adf7627 + 022a816 commit c34161e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .dokcerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
.idea
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ FROM node:16

WORKDIR /app

COPY contracts/ /app/contracts
COPY migrations/ /app/migrations
COPY truffle-config.js /app/truffle-config.js
COPY . .

RUN npm install -g [email protected] && truffle compile
RUN npm install -g [email protected] && npm i && truffle compile

ENTRYPOINT [ "truffle" ]
CMD [ "migrate" ]
4 changes: 2 additions & 2 deletions truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require("dotenv").config()
const HDWalletProvider = require("@truffle/hdwallet-provider");

const DELTA_PKEY = process.env.DELTA_PKEY;
const DELTA_ADDR = process.env.DELTA_ADDR;
const DELTA_PKEY = process.env.DELTA_PKEY || "";
const DELTA_ADDR = process.env.DELTA_ADDR || "";

module.exports = {
networks: {
Expand Down

0 comments on commit c34161e

Please sign in to comment.