Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -5,16 +5,13 @@ RUN apk add --no-cache git openssl
|
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
-
# 2. कोड क्लोन करना
|
| 9 |
RUN git clone https://github.com/EvolutionAPI/evolution-api.git .
|
| 10 |
|
| 11 |
# 3. डिपेंडेंसीज इंस्टॉल करना
|
| 12 |
RUN npm install
|
| 13 |
|
| 14 |
-
# 4.
|
| 15 |
-
RUN npx prisma generate --schema=$(find . -name "schema.prisma")
|
| 16 |
-
|
| 17 |
-
# 5. प्रोजेक्ट बिल्ड करना
|
| 18 |
RUN npm run build
|
| 19 |
|
| 20 |
EXPOSE 7860
|
|
@@ -22,9 +19,10 @@ EXPOSE 7860
|
|
| 22 |
ENV PORT=7860
|
| 23 |
ENV NODE_ENV=production
|
| 24 |
|
| 25 |
-
#
|
| 26 |
CMD ["node", "dist/src/main.js"]
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
|
|
|
|
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
+
# 2. सीधा लेटेस्ट कोड क्लोन करना
|
| 9 |
RUN git clone https://github.com/EvolutionAPI/evolution-api.git .
|
| 10 |
|
| 11 |
# 3. डिपेंडेंसीज इंस्टॉल करना
|
| 12 |
RUN npm install
|
| 13 |
|
| 14 |
+
# 4. प्रोजेक्ट को बिल्ड करना (बिना किसी प्रिज्मा के झंझट के)
|
|
|
|
|
|
|
|
|
|
| 15 |
RUN npm run build
|
| 16 |
|
| 17 |
EXPOSE 7860
|
|
|
|
| 19 |
ENV PORT=7860
|
| 20 |
ENV NODE_ENV=production
|
| 21 |
|
| 22 |
+
# 5. ऐप स्टार्ट करना
|
| 23 |
CMD ["node", "dist/src/main.js"]
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
+
|