Skip to content

Commit 0ffe526

Browse files
committed
🚀 Update node image to bun:canary-slim
1 parent 488175f commit 0ffe526

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Use the official Node.js image
2-
FROM node:lts-alpine3.20
1+
# Use the Bun image
2+
FROM oven/bun:canary-slim
33

44
# Set WORKDIR
55
WORKDIR /app
66

77
# Install server side dependencies
88
COPY ./server/package.json /app
9-
RUN npm i --omit=dev
9+
RUN bun install --production
1010

1111
# Copy server side code to WORKDIR
1212
COPY ./server/dist /app/dist
@@ -18,5 +18,5 @@ EXPOSE 8888
1818
# Define database file path
1919
VOLUME ["/app/data"]
2020

21-
# Auto exec Node.js APP
22-
CMD ["node", "dist/index.js"]
21+
# Auto exec Bun APP
22+
CMD ["bun", "dist/index.js"]

0 commit comments

Comments
 (0)