Skip to content

Commit 451b90f

Browse files
committed
Rollback dockerfile to use node to run server
Bun has a weird bug where it returns null JSON in production
1 parent 67d135d commit 451b90f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ COPY . .
1515
RUN bun run build
1616

1717
# run app
18+
FROM node:22-slim AS runner
19+
ENV CI=true
20+
ENV NODE_ENV=production
21+
1822
WORKDIR /app
1923

24+
COPY --from=base /app /app
25+
2026
EXPOSE 3000
2127
ENV HOSTNAME=0.0.0.0
2228
ENV PORT=3000
2329

24-
CMD ["bun", "run", "start"]
30+
CMD ["npm", "run", "start"]

packages/litlytics/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "litlytics",
33
"module": "dist/litlytics.js",
4+
"main": "dist/litlytics.js",
45
"types": "litlytics.ts",
56
"type": "module",
6-
"version": "0.3.0",
7+
"version": "0.3.1",
78
"scripts": {
89
"build": "bun run build.ts",
910
"typecheck": "tsc",

0 commit comments

Comments
 (0)