cfahlgren1 HF staff commited on
Commit
5b175b1
1 Parent(s): db39944

add dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM oven/bun:1 AS build
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . .
6
+ RUN bun install
7
+ RUN bun run build
8
+
9
+ FROM oven/bun:1-slim AS run
10
+ WORKDIR /app
11
+
12
+ COPY --from=build /app/package.json .
13
+ COPY --from=build /app/bun.lockb .
14
+ COPY --from=build /app/build ./build
15
+
16
+ RUN bun install
17
+
18
+ USER bun
19
+
20
+ EXPOSE 3000
21
+
22
+ CMD ["bun", "./build/index.js"]