From 1c21e37272661ac06300c0a761917f5dc689781c Mon Sep 17 00:00:00 2001 From: Redm4x Date: Thu, 31 Aug 2023 14:27:34 -0400 Subject: [PATCH] Update Dockerfiles & bump versions --- api/Dockerfile | 2 +- api/package-lock.json | 18 +++++++++--------- api/package.json | 4 ++-- deploy-web/Dockerfile | 13 ++++++++++--- deploy-web/package-lock.json | 4 ++-- deploy-web/package.json | 2 +- indexer/Dockerfile | 2 +- indexer/package-lock.json | 4 ++-- indexer/package.json | 2 +- 9 files changed, 29 insertions(+), 22 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index e5855132b..f70a191a8 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:18-alpine # Create app directory diff --git a/api/package-lock.json b/api/package-lock.json index 5bc132174..54110c51d 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -1,15 +1,15 @@ { "name": "cloudmos-api", - "version": "2.5.7", + "version": "2.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cloudmos-api", - "version": "2.5.7", + "version": "2.6.0", "license": "Apache-2.0", "dependencies": { - "@akashnetwork/akashjs": "0.4.5", + "@akashnetwork/akashjs": "0.4.11", "@chain-registry/assets": "^0.7.1", "@cosmjs/crypto": "^0.28.11", "@cosmjs/encoding": "^0.28.11", @@ -83,9 +83,9 @@ } }, "node_modules/@akashnetwork/akashjs": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/@akashnetwork/akashjs/-/akashjs-0.4.5.tgz", - "integrity": "sha512-1Sth9a5keGKwlvN9nhCSuGQQsJ/d2tbmiVGAbbf4YiHVWaEdFuTF6h4QL23okUttZj5h+P9pUZqYYrAiU9QKdA==", + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@akashnetwork/akashjs/-/akashjs-0.4.11.tgz", + "integrity": "sha512-6q3Fn0pBpU1O931RPj1YdtbW3XrWeg5YQ+K+o79xa0ydrvQ7YKuNXthQETY/AvHrYXKDxWG6/wBHA93tugiQew==", "dependencies": { "@cosmjs/launchpad": "^0.27.0", "@cosmjs/proto-signing": "^0.28.11", @@ -16548,9 +16548,9 @@ }, "dependencies": { "@akashnetwork/akashjs": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/@akashnetwork/akashjs/-/akashjs-0.4.5.tgz", - "integrity": "sha512-1Sth9a5keGKwlvN9nhCSuGQQsJ/d2tbmiVGAbbf4YiHVWaEdFuTF6h4QL23okUttZj5h+P9pUZqYYrAiU9QKdA==", + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@akashnetwork/akashjs/-/akashjs-0.4.11.tgz", + "integrity": "sha512-6q3Fn0pBpU1O931RPj1YdtbW3XrWeg5YQ+K+o79xa0ydrvQ7YKuNXthQETY/AvHrYXKDxWG6/wBHA93tugiQew==", "requires": { "@cosmjs/launchpad": "^0.27.0", "@cosmjs/proto-signing": "^0.28.11", diff --git a/api/package.json b/api/package.json index 26be3b255..267a31763 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "cloudmos-api", - "version": "2.5.7", + "version": "2.6.0", "description": "Api providing data to the deploy tool", "author": "Cloudmos", "license": "Apache-2.0", @@ -15,7 +15,7 @@ "url": "git+https://github.com/akash-network/cloudmos" }, "dependencies": { - "@akashnetwork/akashjs": "0.4.5", + "@akashnetwork/akashjs": "0.4.11", "@chain-registry/assets": "^0.7.1", "@cosmjs/crypto": "^0.28.11", "@cosmjs/encoding": "^0.28.11", diff --git a/deploy-web/Dockerfile b/deploy-web/Dockerfile index 6d80cead7..e07a9ee0d 100644 --- a/deploy-web/Dockerfile +++ b/deploy-web/Dockerfile @@ -25,7 +25,7 @@ COPY . . RUN npm run build # Production image, copy all the files and run next -FROM base AS runner +FROM node:18 AS runner WORKDIR /app ENV NODE_ENV production @@ -42,10 +42,17 @@ COPY --from=builder /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +#RUN apk update +RUN apt-get update +RUN apt-get install libcap2-bin -y +RUN setcap cap_net_bind_service=+ep `readlink -f \`which node\`` + USER nextjs -EXPOSE 3001 +#EXPOSE 3001 +EXPOSE 80 -ENV PORT 3001 +#ENV PORT 3001 +ENV PORT 80 CMD ["node", "server.js"] \ No newline at end of file diff --git a/deploy-web/package-lock.json b/deploy-web/package-lock.json index 2fa14ffac..05c0ce35c 100644 --- a/deploy-web/package-lock.json +++ b/deploy-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "cloudmos-app", - "version": "1.3.6", + "version": "1.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cloudmos-app", - "version": "1.3.6", + "version": "1.4.0", "license": "Apache-2.0", "dependencies": { "@akashnetwork/akashjs": "^0.4.11", diff --git a/deploy-web/package.json b/deploy-web/package.json index 0951647e4..12607c8d7 100644 --- a/deploy-web/package.json +++ b/deploy-web/package.json @@ -1,6 +1,6 @@ { "name": "cloudmos-app", - "version": "1.3.6", + "version": "1.4.0", "description": "Web UI to deploy on the Akash Network and view statistic about network usage.", "author": "Cloudmos", "private": true, diff --git a/indexer/Dockerfile b/indexer/Dockerfile index b571a9efd..56c08b62d 100644 --- a/indexer/Dockerfile +++ b/indexer/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:18-alpine # Create app directory diff --git a/indexer/package-lock.json b/indexer/package-lock.json index 2d968100f..f8c701153 100644 --- a/indexer/package-lock.json +++ b/indexer/package-lock.json @@ -1,12 +1,12 @@ { "name": "cloudmos-indexer", - "version": "1.2.2", + "version": "1.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cloudmos-indexer", - "version": "1.2.2", + "version": "1.3.0", "license": "Apache-2.0", "dependencies": { "@akashnetwork/akashjs": "0.4.11", diff --git a/indexer/package.json b/indexer/package.json index 809fa4abe..6108e72cd 100644 --- a/indexer/package.json +++ b/indexer/package.json @@ -1,6 +1,6 @@ { "name": "cloudmos-indexer", - "version": "1.2.2", + "version": "1.3.0", "description": "Indexer for any Cosmos based blockchain", "author": "Cloudmos", "license": "Apache-2.0",