Multi-stage Dockerfile: node:22-alpine builder + nginx:alpine server. nginx.conf sets COOP/COEP headers (required for SharedArrayBuffer/audio workers), SPA fallback, and aggressive caching for content-hashed assets. API credentials and BASE_URL passed as build args.
12 lines
256 B
YAML
12 lines
256 B
YAML
services:
|
|
telegram-tt:
|
|
build:
|
|
context: .
|
|
args:
|
|
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
|
|
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
|
|
BASE_URL: ${BASE_URL:-/}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-8080}:80"
|