File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM node:20.7.0-alpine
1+ FROM node:20.7.0-alpine AS builder
22
33LABEL version="1.6.1" description="Api to control whatsapp features through http requests."
44LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
@@ -11,6 +11,14 @@ WORKDIR /evolution
1111
1212COPY ./package.json .
1313
14+ RUN npm install
15+
16+ COPY . .
17+
18+ RUN npm run build
19+
20+ FROM node:20.7.0-alpine AS final
21+
1422ENV TZ=America/Sao_Paulo
1523ENV DOCKER_ENV=true
1624
@@ -126,10 +134,8 @@ ENV AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID=1
126134ENV AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN=123456
127135ENV AUTHENTICATION_INSTANCE_CHATWOOT_URL=<url>
128136
129- RUN npm install
130-
131- COPY . .
137+ WORKDIR /evolution
132138
133- RUN npm run build
139+ COPY --from=builder /evolution .
134140
135141CMD [ "node" , "./dist/src/main.js" ]
You can’t perform that action at this time.
0 commit comments