Skip to content

Commit 9a87e8b

Browse files
committed
revert bunjs
1 parent a1728e9 commit 9a87e8b

File tree

3 files changed

+63
-63
lines changed

3 files changed

+63
-63
lines changed

Dockerfile

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
FROM imbios/bun-node:latest-20-alpine AS base
1+
FROM node:20-alpine AS base
22

33
# Disabling Telemetry
44
ENV NEXT_TELEMETRY_DISABLED 1
5-
# RUN apk add libc6-compat
6-
RUN apk add curl
7-
RUN apk add python3
8-
RUN apk add py3-pip
5+
RUN apk add --no-cache libc6-compat curl python3 py3-pip
96

107
FROM base AS deps
118
WORKDIR /app
129

13-
COPY package.json bun.lockb ./
14-
RUN bun install
10+
COPY package.json package-lock.json ./
11+
RUN npm ci
1512

1613
FROM base AS builder
1714
WORKDIR /app
1815
COPY --from=deps /app/node_modules ./node_modules
1916
COPY . .
2017

21-
RUN bun run build
18+
RUN npm run build
2219

2320
FROM base AS runner
2421
WORKDIR /app
2522

2623
ENV NODE_ENV production
2724

28-
RUN addgroup --system --gid 1002 nodejs
29-
RUN adduser --system --uid 1002 nextjs
25+
RUN addgroup --system --gid 1001 nodejs
26+
RUN adduser --system --uid 1001 nextjs
3027

3128
COPY --from=builder /app/drizzle ./drizzle
3229
COPY --from=builder /app/public ./public
@@ -45,4 +42,4 @@ ENV PORT 3000
4542
ENV HOSTNAME "0.0.0.0"
4643
ENV NODE_ENV=production
4744

48-
CMD ["bun", "run", "server.js"]
45+
CMD ["node", "server.js"]

bun.lockb

55 Bytes
Binary file not shown.

package.json

+55-52
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,57 @@
11
{
2-
"name": "nextjs_vps",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint",
10-
"generate": "drizzle-kit generate:sqlite",
11-
"deploy": "kamal deploy",
12-
"pretty": "npx prettier --write .",
13-
"pretty:check": "npx prettier --check ."
14-
},
15-
"dependencies": {
16-
"@radix-ui/react-slot": "^1.0.2",
17-
"better-sqlite3": "^9.4.5",
18-
"class-variance-authority": "^0.7.0",
19-
"clsx": "^2.1.0",
20-
"drizzle-orm": "^0.30.7",
21-
"install": "^0.13.0",
22-
"lodash": "^4.17.21",
23-
"lodash.chunk": "^4.2.0",
24-
"lucide-react": "^0.365.0",
25-
"moment": "^2.30.1",
26-
"next": "14.1.4",
27-
"npm": "^10.5.1",
28-
"react": "^18",
29-
"react-dom": "^18",
30-
"recharts": "^2.12.4",
31-
"serialize-error": "^11.0.3",
32-
"sharp": "^0.33.3",
33-
"sqlite": "^5.1.1",
34-
"stale-while-revalidate-cache": "^3.4.0",
35-
"tailwind-merge": "^2.2.2",
36-
"tailwindcss-animate": "^1.0.7"
37-
},
38-
"devDependencies": {
39-
"@types/better-sqlite3": "^7.6.9",
40-
"@types/lodash.chunk": "^4.2.9",
41-
"@types/node": "^20",
42-
"@types/react": "^18",
43-
"@types/react-dom": "^18",
44-
"autoprefixer": "^10.0.1",
45-
"drizzle-kit": "^0.20.14",
46-
"eslint": "^8",
47-
"eslint-config-next": "14.1.4",
48-
"husky": "^9.0.11",
49-
"postcss": "^8",
50-
"prettier": "3.2.5",
51-
"tailwindcss": "^3.3.0",
52-
"typescript": "^5"
53-
}
2+
"name": "nextjs_vps",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"generate": "drizzle-kit generate:sqlite",
11+
"deploy": "kamal deploy",
12+
"pretty": "npx prettier --write .",
13+
"pretty:check": "npx prettier --check ."
14+
},
15+
"dependencies": {
16+
"@radix-ui/react-slot": "^1.0.2",
17+
"better-sqlite3": "^9.4.5",
18+
"class-variance-authority": "^0.7.0",
19+
"clsx": "^2.1.0",
20+
"drizzle-orm": "^0.30.7",
21+
"install": "^0.13.0",
22+
"lodash": "^4.17.21",
23+
"lodash.chunk": "^4.2.0",
24+
"lucide-react": "^0.365.0",
25+
"moment": "^2.30.1",
26+
"next": "14.1.4",
27+
"npm": "^10.5.1",
28+
"react": "^18",
29+
"react-dom": "^18",
30+
"recharts": "^2.12.4",
31+
"serialize-error": "^11.0.3",
32+
"sharp": "^0.33.3",
33+
"sqlite": "^5.1.1",
34+
"stale-while-revalidate-cache": "^3.4.0",
35+
"tailwind-merge": "^2.2.2",
36+
"tailwindcss-animate": "^1.0.7"
37+
},
38+
"devDependencies": {
39+
"@types/better-sqlite3": "^7.6.9",
40+
"@types/lodash.chunk": "^4.2.9",
41+
"@types/node": "^20",
42+
"@types/react": "^18",
43+
"@types/react-dom": "^18",
44+
"autoprefixer": "^10.0.1",
45+
"drizzle-kit": "^0.20.14",
46+
"eslint": "^8",
47+
"eslint-config-next": "14.1.4",
48+
"husky": "^9.0.11",
49+
"postcss": "^8",
50+
"prettier": "3.2.5",
51+
"tailwindcss": "^3.3.0",
52+
"typescript": "^5"
53+
},
54+
"trustedDependencies": [
55+
"es5-ext"
56+
]
5457
}

0 commit comments

Comments
 (0)