Skip to content

Commit

Permalink
Update Dockerfiles & bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Aug 31, 2023
1 parent da49957 commit 1c21e37
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

# Create app directory

Expand Down
18 changes: 9 additions & 9 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
13 changes: 10 additions & 3 deletions deploy-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
4 changes: 2 additions & 2 deletions deploy-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy-web/package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion indexer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

# Create app directory

Expand Down
4 changes: 2 additions & 2 deletions indexer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion indexer/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 1c21e37

Please sign in to comment.