LuillY3 commited on
Commit
e275e2f
·
verified ·
1 Parent(s): 8745bf0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Usamos la imagen oficial v2 estable
2
+ FROM evoapicloud/evolution-api:v2.2.2
3
+
4
+ # -----------------------------------------------------------------------------
5
+ # CONFIGURACIÓN DEL PUERTO (Obligatorio para Hugging Face)
6
+ # -----------------------------------------------------------------------------
7
+ ENV SERVER_PORT=7860
8
+ EXPOSE 7860
9
+
10
+ # -----------------------------------------------------------------------------
11
+ # CONFIGURACIÓN DE BASE DE DATOS Y CACHÉ (Lógica interna)
12
+ # -----------------------------------------------------------------------------
13
+ # Activamos Postgres (Supabase)
14
+ ENV DATABASE_ENABLED=true
15
+ ENV DATABASE_PROVIDER=postgresql
16
+ ENV DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
17
+
18
+ # Activamos Redis (Upstash) y desactivamos caché local para evitar pérdida de sesión
19
+ ENV CACHE_REDIS_ENABLED=true
20
+ ENV CACHE_LOCAL_ENABLED=false
21
+ ENV CACHE_REDIS_SAVE_INSTANCES=false
22
+
23
+ # Seguridad Básica
24
+ ENV AUTHENTICATION_EXPOSE_IN_NAVIGATION=false
25
+
26
+ # -----------------------------------------------------------------------------
27
+ # COMANDO DE INICIO
28
+ # -----------------------------------------------------------------------------
29
+ CMD ["node", "./dist/src/main.js"]