Skip to content

Commit a3223ec

Browse files
chore: local compose/image tweaks for testing metrics (not part of PR)
1 parent 875b874 commit a3223ec

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Dockerfile.metrics

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.8"
33
services:
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

0 commit comments

Comments
 (0)