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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,22 +1,24 @@
1
- # Gunakan Node.js versi LTS
2
  FROM node:20-alpine
3
 
4
- # Set working directory utama
5
  WORKDIR /app
6
 
7
- # Install git
8
- RUN apk add --no-cache git
9
 
10
- # Clone repo Cobalt
 
 
 
11
  RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
12
 
13
- # Pindah ke folder api
14
  WORKDIR /app/cobalt/api
15
 
16
- # Install dependencies API
17
- RUN npm install --production
18
 
19
- # Expose port Hugging Face default
20
  ENV PORT=7860
21
  EXPOSE 7860
22
 
 
 
1
  FROM node:20-alpine
2
 
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