everydaycats commited on
Commit
c13a5c0
·
verified ·
1 Parent(s): 95d5750

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +38 -0
Dockerfile ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FROM node:22.16.0
2
+ FROM oven/bun:1.3.4
3
+
4
+
5
+ # Install ffmpeg
6
+ # RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Create a non-root user with
9
+ RUN useradd -m -u 2000 user
10
+ USER user
11
+ ENV PATH="/home/user/.local/bin:$PATH"
12
+
13
+
14
+ # Set working directory
15
+ WORKDIR /app
16
+
17
+ # COPY --chown=user bun.lockb bun.lockb
18
+ COPY --chown=user package.json package.json
19
+ RUN bun install
20
+
21
+
22
+
23
+ # Copy package files and install dependencies
24
+ #COPY --chown=user package*.json ./
25
+ # RUN npm install
26
+
27
+ # Copy the rest of the application source
28
+ COPY --chown=user . /app
29
+
30
+ # Expose the port if needed (optional, depending on the hosting environment)
31
+ EXPOSE 7860
32
+ EXPOSE 8000
33
+ EXPOSE 8080
34
+
35
+ # Run the Node.js application
36
+ # CMD ["node", "app.js"]
37
+
38
+ CMD ["bun", "app.js"]