diff --git a/Dockerfile b/Dockerfile index 0224b9a..eb18d5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/src/entry.ts b/src/entry.ts index 7493501..7672e18 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -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);