Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
anudit committed Apr 10, 2024
1 parent c21ce15 commit b8ef0c7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 80 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ scripts
fly.toml
.swc
.gitsigners
/pages/stats.js
/pages/stats.js
/pages/explore.js
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM node:18-bookworm-slim as base
FROM node:18 as base

WORKDIR /app

# Install node-gyp, Python 3
RUN apt-get update
RUN apt-get install -y build-essential python3 libc6-dev python3-pip make gcc g++ node-gyp libkrb5-dev libssl-dev libsasl2-dev
RUN apt-get install -y build-essential python3 libc6-dev python3-pip make gcc g++ node-gyp
RUN apt-get install -y libkrb5-dev libssl-dev libsasl2-dev

COPY package.json bun.lockb ./
RUN npm i -g bun
COPY . .

RUN npm install -g bun
RUN bun install

# Build the Next.js app
COPY . .
ENV NODE_ENV=production
RUN bun run build

FROM oven/bun:distroless AS runner

FROM oven/bun:debian AS runner
WORKDIR /app

COPY --from=base /app .
Expand All @@ -24,4 +26,4 @@ ENV PORT 5004
EXPOSE 5004

# Start the app server
CMD [ "bun", "run", "start" ]
CMD [ "bun", "run", "start" ]
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"dotenv": "^16.4.5",
"ethers": "^5.7.2",
"framer-motion": "^11.0.25",
"got": "^14.2.1",
"got": "^13.0.0",
"ioredis": "^5.3.2",
"js-cookie": "^3.0.5",
"jsonwebtoken": "^9.0.2",
"kerberos": "^2.1.0",
"key-did-provider-ed25519": "^3.0.1",
"mongodb": "^5.6.0",
"mongodb-client-encryption": "^2.8.0",
"mongodb": "^6.5.0",
"mongodb-client-encryption": "^6.0.0",
"near-api-js": "^2.1.4",
"next": "^14.1.4",
"next-pwa": "^5.6.0",
Expand Down
69 changes: 0 additions & 69 deletions pages/explore.js

This file was deleted.

0 comments on commit b8ef0c7

Please sign in to comment.