Skip to content

Commit

Permalink
Merge pull request #5 from MinaFoundation/PM-1118-rework-docker-clean…
Browse files Browse the repository at this point in the history
…-dead-code

PM-1118: rework Dockerfile. remove dead code
  • Loading branch information
simisimis authored Feb 1, 2024
2 parents 3970c4d + b64657c commit 2a5c727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ FROM node:alpine

WORKDIR /app

COPY --from=build /usr/src/app/node_modules ./node_modules
COPY --from=build /usr/src/app/build ./

COPY --from=build /usr/src/app/package*.json ./

RUN npm install

CMD ["node", "./entry.js"]
2 changes: 0 additions & 2 deletions src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ program
let transactionCount = options.transactionCount;
let transactionInterval = options.transactionInterval;
let transactionType = options.transactionType;
const passwordForSenderPrivateKey = options.passwordForSenderPrivateKey || process.env.SENDER_PRIVATE_KEY_PASSWORD;
const pathToSenderPrivateKey = options.pathToSenderPrivateKey || process.env.SENDER_PRIVATE_KEY_PATH;
if (!url) {
console.error("url is not specified or MINA_GRAPHQL_URL is not set.");
process.exit(1);
Expand Down

0 comments on commit 2a5c727

Please sign in to comment.