kwosky514 commited on
Commit
3e9328a
·
verified ·
1 Parent(s): e94213f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,4 +1,12 @@
1
- FROM atendai/evolution-api:v1.8.7
 
 
 
 
 
 
 
 
2
 
3
  ENV PORT=7860
4
  ENV SERVER_PORT=7860
@@ -6,4 +14,4 @@ ENV HOST=0.0.0.0
6
 
7
  EXPOSE 7860
8
 
9
- CMD ["sh", "-c", "node /app/dist/main.js || node /app/dist/main"]
 
1
+ FROM node:20
2
+
3
+ WORKDIR /app
4
+
5
+ RUN git clone https://github.com/Atendai/evolution-api.git .
6
+
7
+ RUN npm install
8
+
9
+ RUN npm run build
10
 
11
  ENV PORT=7860
12
  ENV SERVER_PORT=7860
 
14
 
15
  EXPOSE 7860
16
 
17
+ CMD ["node", "dist/main"]