Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM node:20-alpine
|
| 2 |
|
| 3 |
# जरूरी टूल्स इंस्टॉल करना
|
| 4 |
-
RUN apk add --no-cache git openssl
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
RUN git clone https://github.com/EvolutionAPI/evolution-api.git .
|
|
@@ -9,8 +9,10 @@ RUN git clone https://github.com/EvolutionAPI/evolution-api.git .
|
|
| 9 |
# डिपेंडेंसीज इंस्टॉल करना
|
| 10 |
RUN npm install
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
RUN
|
|
|
|
|
|
|
| 14 |
|
| 15 |
EXPOSE 7860
|
| 16 |
|
|
@@ -25,3 +27,4 @@ CMD ["npm", "run", "start:prod"]
|
|
| 25 |
|
| 26 |
|
| 27 |
|
|
|
|
|
|
| 1 |
FROM node:20-alpine
|
| 2 |
|
| 3 |
# जरूरी टूल्स इंस्टॉल करना
|
| 4 |
+
RUN apk add --no-cache git openssl findutils
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
RUN git clone https://github.com/EvolutionAPI/evolution-api.git .
|
|
|
|
| 9 |
# डिपेंडेंसीज इंस्टॉल करना
|
| 10 |
RUN npm install
|
| 11 |
|
| 12 |
+
# फाइल को ढूंढकर उसका सही पाथ इस्तेमाल करना
|
| 13 |
+
RUN SCHEMA_PATH=$(find . -name "schema.prisma" | head -n 1) && \
|
| 14 |
+
echo "Found schema at: $SCHEMA_PATH" && \
|
| 15 |
+
npx prisma generate --schema=$SCHEMA_PATH
|
| 16 |
|
| 17 |
EXPOSE 7860
|
| 18 |
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
+
|