Arifzyn commited on
Commit
dbf2264
·
verified ·
1 Parent(s): 92c7865

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -3,24 +3,24 @@ FROM node:20-alpine
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Install git + ffmpeg + bash (optional)
7
- RUN apk add --no-cache git ffmpeg bash
8
 
9
- # Upgrade npm supaya support workspace
10
- RUN npm install -g npm@11
11
 
12
- # Clone repo
13
  RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
14
 
15
  # Masuk ke folder API
16
  WORKDIR /app/cobalt/api
17
 
18
- # Install dependencies dengan support workspace
19
- RUN npm install --legacy-peer-deps
20
 
21
  # Expose port Hugging Face
22
  ENV PORT=7860
23
  EXPOSE 7860
24
 
25
  # Start API
26
- CMD ["npm", "start"]
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Install git, ffmpeg, bash
7
+ RUN apk add --no-cache git ffmpeg bash curl
8
 
9
+ # Install pnpm global
10
+ RUN npm install -g pnpm
11
 
12
+ # Clone repo Cobalt
13
  RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
14
 
15
  # Masuk ke folder API
16
  WORKDIR /app/cobalt/api
17
 
18
+ # Install dependencies via pnpm
19
+ RUN pnpm install --prod
20
 
21
  # Expose port Hugging Face
22
  ENV PORT=7860
23
  EXPOSE 7860
24
 
25
  # Start API
26
+ CMD ["pnpm", "start"]