mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 01:49:37 -06:00
chore: local compose/image tweaks for testing metrics (not part of PR)
This commit is contained in:
parent
875b874a7b
commit
a3223ec890
19
Dockerfile.metrics
Normal file
19
Dockerfile.metrics
Normal file
@ -0,0 +1,19 @@
|
||||
FROM evoapicloud/evolution-api:latest AS base
|
||||
WORKDIR /evolution
|
||||
|
||||
# Copiamos apenas o necessário para recompilar o dist com as mudanças locais
|
||||
COPY tsconfig.json tsup.config.ts package.json ./
|
||||
COPY src ./src
|
||||
|
||||
# Recompila usando os node_modules já presentes na imagem base
|
||||
RUN npm run build
|
||||
|
||||
# Runtime final: reaproveita a imagem oficial e apenas sobrepõe o dist
|
||||
FROM evoapicloud/evolution-api:latest AS final
|
||||
WORKDIR /evolution
|
||||
COPY --from=base /evolution/dist ./dist
|
||||
|
||||
ENV PROMETHEUS_METRICS=true
|
||||
|
||||
# Entrada original da imagem oficial já sobe o app em /evolution
|
||||
|
||||
@ -3,7 +3,7 @@ version: "3.8"
|
||||
services:
|
||||
api:
|
||||
container_name: evolution_api
|
||||
image: evoapicloud/evolution-api:latest
|
||||
image: evolution/api:metrics
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
Loading…
Reference in New Issue
Block a user