dbstrt's picture
Update Dockerfile
2c1d776 verified
Raw History Blame Contribute Delete
831 Bytes
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"]