Update Dockerfile
Browse files- Dockerfile +15 -11
Dockerfile
CHANGED
|
@@ -1,28 +1,32 @@
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
-
#
|
| 4 |
ENV PORT=7860
|
| 5 |
ENV SERVER_PORT=7860
|
| 6 |
-
EXPOSE 7860
|
| 7 |
ENV SERVER_HOST=0.0.0.0
|
|
|
|
| 8 |
|
| 9 |
-
#
|
| 10 |
ENV AUTH_MODE=apikey
|
| 11 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
| 12 |
-
ENV SERVER_URL=https://getzero11-whatsapp.hf.space
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
| 15 |
ENV DATABASE_ENABLED=true
|
| 16 |
ENV DATABASE_PROVIDER=postgresql
|
| 17 |
-
# We encode the '&' in your password as '%26'
|
| 18 |
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 19 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
ENV CONFIG_SESSION_PHONE_VERSION=
|
| 23 |
-
ENV WEB_VERSION=
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
#
|
| 26 |
ENV CACHE_LOCAL_ENABLED=true
|
| 27 |
ENV CACHE_REDIS_ENABLED=false
|
| 28 |
-
ENV DATABASE_CONNECTION_MAX_POOL_SIZE=1
|
|
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
+
# Hugging Face runtime
|
| 4 |
ENV PORT=7860
|
| 5 |
ENV SERVER_PORT=7860
|
|
|
|
| 6 |
ENV SERVER_HOST=0.0.0.0
|
| 7 |
+
EXPOSE 7860
|
| 8 |
|
| 9 |
+
# Auth
|
| 10 |
ENV AUTH_MODE=apikey
|
| 11 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
|
|
|
| 12 |
|
| 13 |
+
# IMPORTANT: let HF manage the URL
|
| 14 |
+
ENV SERVER_URL=
|
| 15 |
+
|
| 16 |
+
# Database (Supabase direct connection is OK)
|
| 17 |
ENV DATABASE_ENABLED=true
|
| 18 |
ENV DATABASE_PROVIDER=postgresql
|
|
|
|
| 19 |
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 20 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 21 |
|
| 22 |
+
# DO NOT pin WhatsApp Web versions
|
| 23 |
+
ENV CONFIG_SESSION_PHONE_VERSION=
|
| 24 |
+
ENV WEB_VERSION=
|
| 25 |
+
|
| 26 |
+
# Chromium fixes for HF
|
| 27 |
+
ENV CHROME_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage"
|
| 28 |
|
| 29 |
+
# Performance
|
| 30 |
ENV CACHE_LOCAL_ENABLED=true
|
| 31 |
ENV CACHE_REDIS_ENABLED=false
|
| 32 |
+
ENV DATABASE_CONNECTION_MAX_POOL_SIZE=1
|