Skip to content

Commit 230130e

Browse files
committed
chore: Update Dockerfile and package.json for bun command consistency
1 parent 8b5a00d commit 230130e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ FROM base AS prerelease
2121
COPY --from=install /temp/dev/node_modules node_modules
2222
COPY . .
2323

24-
# [optional] tests & build
2524
ENV NODE_ENV=production
25+
26+
# [optional] build
2627
RUN bun run build
2728

2829
# copy production dependencies and source code into final image
@@ -36,4 +37,4 @@ COPY --from=prerelease /usr/src/app/tsconfig.json .
3637
USER bun
3738
ARG PORT
3839
EXPOSE ${PORT:-3000}
39-
CMD [ "bun", "src/index.ts" ]
40+
CMD [ "bun", "start" ]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": "true",
55
"main": "src/index.ts",
66
"scripts": {
7-
"start": "bun run .",
8-
"dev": "bun run --watch .",
7+
"start": "bun .",
8+
"dev": "bun --watch .",
99
"build": "tsc",
1010
"lint": "biome ci ."
1111
},

0 commit comments

Comments
 (0)