diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 00000000..2eea525d --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index bfa00173..1cfc0c90 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,4 +1,5 @@ { + "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", @@ -10,7 +11,13 @@ "start": "next start", "datadog": "ts-node ./scripts/datadog.ts", "influxdb": "ts-node ./scripts/influxdb.ts", - "prettier": "prettier . --write" + "prettier": "prettier . --write", + "docker:login": "aws ecr get-login-password --region us-east-2 --profile $AWS_PROFILE_PRODUCTION | docker login --username AWS --password-stdin $AWS_ACCOUNT_PRODUCTION.dkr.ecr.us-east-2.amazonaws.com", + "docker:build": "docker build --platform=linux/amd64 --tag $(npm run --silent docker:prod-tag) . --file ./Dockerfile.influxdb", + "docker:prod-tag": "echo $AWS_ACCOUNT_PRODUCTION.dkr.ecr.us-east-2.amazonaws.com/airdrop-metrics-job:$(npm run --silent version)", + "docker:push": "yarn docker:login && docker push $(npm run --silent docker:prod-tag)", + "docker:build-push": "yarn docker:build && yarn docker:push", + "version": "jq --raw-output '.version' package.json" }, "dependencies": { "@aptos-labs/wallet-adapter-react": "^1.2.2",