Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install git
|
| 8 |
-
RUN apk add --no-cache git
|
| 9 |
|
| 10 |
-
#
|
|
|
|
|
|
|
|
|
|
| 11 |
RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
|
| 12 |
|
| 13 |
-
#
|
| 14 |
WORKDIR /app/cobalt/api
|
| 15 |
|
| 16 |
-
# Install dependencies
|
| 17 |
-
RUN npm install --
|
| 18 |
|
| 19 |
-
# Expose port Hugging Face
|
| 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 |
|