File size: 831 Bytes
2c1d776
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG EVOAPI_VERSION
FROM atendai/evolution-api:$EVOAPI_VERSION

# HF Spaces config - use variable not hardcoded URL
ENV SERVER_URL=https://$(SPACE_HOST)
ENV SERVER_PORT=7860
EXPOSE 7860

# WebSocket
ENV WEBSOCKET_ENABLED=true
ENV WEBSOCKET_GLOBAL_EVENTS=false

# Session config
ENV CONFIG_SESSION_PHONE_CLIENT=EvolutionAPI
ENV CONFIG_SESSION_PHONE_NAME=Chrome
ENV CONFIG_SESSION_PHONE_VERSION=2.3000.1030630804
ENV BAILEYS_VERSION=2.3000.1029878816

# No database - in-memory only (for testing)
ENV DATABASE_ENABLED=false
ENV CACHE_REDIS_ENABLED=false

# Store in memory (lost on restart)
ENV STORE_MESSAGES=true
ENV STORE_MESSAGE_UP=true
ENV STORE_CONTACTS=true
ENV STORE_CHATS=true

# Auth from Space secrets
ENV AUTHENTICATION_API_KEY=${AUTHENTICATION_API_KEY}

# CORS
ENV CORS_ORIGIN=*

# Start
CMD ["npm", "run", "start:prod"]