publicstring commited on
Commit
caedf2d
·
verified ·
1 Parent(s): ad62495

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -1
Dockerfile CHANGED
@@ -1 +1,22 @@
1
- h
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM oven/bun:1.3.14
2
+
3
+ # Create a non-root user with
4
+ RUN useradd -m -u 2000 user
5
+ USER user
6
+ ENV PATH="/home/user/.local/bin:$PATH"
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # COPY --chown=user bun.lockb bun.lockb
12
+ COPY --chown=user package.json package.json
13
+ RUN bun install
14
+
15
+
16
+ # Copy the rest of the application source
17
+ COPY --chown=user . /app
18
+
19
+ # Expose the port if needed (optional, depending on the hosting environment)
20
+ EXPOSE 7860
21
+
22
+ CMD ["bun", "app.js"]