@wppconnect/server 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/Dockerfile +25 -0
- package/docker-compose.yml +14 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/Dockerfile
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
FROM node:14-alpine as base
|
|
2
|
+
WORKDIR /usr/src/wpp-server
|
|
3
|
+
ENV NODE_ENV=production PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
|
4
|
+
COPY package.json yarn.lock ./
|
|
5
|
+
RUN yarn install --production --pure-lockfile && \
|
|
6
|
+
yarn cache clean
|
|
7
|
+
|
|
8
|
+
FROM base as build
|
|
9
|
+
WORKDIR /usr/src/wpp-server
|
|
10
|
+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
|
11
|
+
COPY package.json yarn.lock ./
|
|
12
|
+
RUN yarn install --production=false --pure-lockfile && \
|
|
13
|
+
yarn cache clean
|
|
14
|
+
COPY . .
|
|
15
|
+
RUN yarn build
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
FROM base
|
|
19
|
+
WORKDIR /usr/src/wpp-server/
|
|
20
|
+
RUN apk add --no-cache chromium
|
|
21
|
+
RUN yarn cache clean
|
|
22
|
+
COPY . .
|
|
23
|
+
COPY --from=build /usr/src/wpp-server/ /usr/src/wpp-server/
|
|
24
|
+
EXPOSE 21465
|
|
25
|
+
ENTRYPOINT ["node", "dist/server.js"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "Projeto feito para autenticar a automomacao do WhatsappWeb com multi-clientes de forma dinamica. Backend feito em Nodejs(express, socketio), FrontEnd (ReactJS)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "kingaspx",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wppconnect-team/wppconnect": "^1.12.
|
|
33
|
-
"axios": "^0.
|
|
32
|
+
"@wppconnect-team/wppconnect": "^1.12.6",
|
|
33
|
+
"axios": "^0.26.0",
|
|
34
34
|
"bcrypt": "^5.0.1",
|
|
35
35
|
"cors": "^2.8.5",
|
|
36
|
-
"dotenv": "^
|
|
36
|
+
"dotenv": "^16.0.0",
|
|
37
37
|
"express": "^4.17.1",
|
|
38
38
|
"form-data": "^4.0.0",
|
|
39
39
|
"express-query-boolean": "^2.0.0",
|