Pepguy commited on
Commit
830a73a
·
verified ·
1 Parent(s): 57c09cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -4
Dockerfile CHANGED
@@ -1,4 +1,6 @@
1
- FROM node:19
 
 
2
 
3
  # Install ffmpeg
4
  # RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
@@ -12,9 +14,15 @@ ENV PATH="/home/user/.local/bin:$PATH"
12
  # Set working directory
13
  WORKDIR /app
14
 
 
 
 
 
 
 
15
  # Copy package files and install dependencies
16
- COPY --chown=user package*.json ./
17
- RUN npm install
18
 
19
  # Copy the rest of the application source
20
  COPY --chown=user . /app
@@ -23,4 +31,6 @@ COPY --chown=user . /app
23
  EXPOSE 7860
24
 
25
  # Run the Node.js application
26
- CMD ["node", "app.js"]
 
 
 
1
+ # FROM node:19
2
+ FROM oven/bun:1.0
3
+
4
 
5
  # Install ffmpeg
6
  # RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
 
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
 
31
  EXPOSE 7860
32
 
33
  # Run the Node.js application
34
+ #CMD ["node", "app.js"]
35
+
36
+ CMD ["bun", "app.js"]