p3rc03 commited on
Commit
a8715ab
Β·
unverified Β·
1 Parent(s): 7a9246c

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +10 -6
dockerfile CHANGED
@@ -1,17 +1,21 @@
1
  # ─────────────────────────────────────────────────────────────────────────────
2
- # Option B: Use Node image and install Bun via npm
3
  # ─────────────────────────────────────────────────────────────────────────────
4
- FROM node:18
5
 
 
6
  WORKDIR /app
7
 
8
- # install bun
9
- RUN npm install -g bun
10
-
11
- COPY bun.lockb components.json ./
12
  RUN bun install
13
 
 
14
  COPY . .
15
 
 
16
  EXPOSE 3000
 
 
17
  CMD ["bun", "run", "start"]
 
1
  # ─────────────────────────────────────────────────────────────────────────────
2
+ # Option A: Use the official Bun image
3
  # ─────────────────────────────────────────────────────────────────────────────
4
+ FROM jarredsumner/bun:latest
5
 
6
+ # set working directory
7
  WORKDIR /app
8
 
9
+ # copy lockfile and install deps
10
+ COPY bun.lockb .
11
+ COPY components.json .
 
12
  RUN bun install
13
 
14
+ # copy rest of the source
15
  COPY . .
16
 
17
+ # expose the port your app listens on
18
  EXPOSE 3000
19
+
20
+ # start the app (adjust if your start script is different)
21
  CMD ["bun", "run", "start"]