Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -3,24 +3,24 @@ FROM node:20-alpine
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Install git
|
| 7 |
-
RUN apk add --no-cache git ffmpeg bash
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
RUN npm install -g
|
| 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
|
| 19 |
-
RUN
|
| 20 |
|
| 21 |
# Expose port Hugging Face
|
| 22 |
ENV PORT=7860
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
# Start API
|
| 26 |
-
CMD ["
|
|
|
|
| 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"]
|