File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM evoapicloud/evolution-api:latest AS base
2+ WORKDIR /evolution
3+
4+ # Copiamos apenas o necessário para recompilar o dist com as mudanças locais
5+ COPY tsconfig.json tsup.config.ts package.json ./
6+ COPY src ./src
7+
8+ # Recompila usando os node_modules já presentes na imagem base
9+ RUN npm run build
10+
11+ # Runtime final: reaproveita a imagem oficial e apenas sobrepõe o dist
12+ FROM evoapicloud/evolution-api:latest AS final
13+ WORKDIR /evolution
14+ COPY --from=base /evolution/dist ./dist
15+
16+ ENV PROMETHEUS_METRICS=true
17+
18+ # Entrada original da imagem oficial já sobe o app em /evolution
19+
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: "3.8"
33services :
44 api :
55 container_name : evolution_api
6- image : evoapicloud/ evolution- api:latest
6+ image : evolution/ api:metrics
77 restart : always
88 depends_on :
99 - redis
You can’t perform that action at this time.
0 commit comments