fix: use build arg for NEXT_PUBLIC_API_URL

This commit is contained in:
KV-Tube Deployer 2026-03-26 14:00:40 +07:00
parent 68824d70ff
commit df02bc9801
2 changed files with 6 additions and 1 deletions

View file

@ -63,7 +63,8 @@ ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV KVTUBE_DATA_DIR=/app/data
ENV GIN_MODE=release
ENV NEXT_PUBLIC_API_URL=http://127.0.0.1:8080
ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:8080
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
EXPOSE 3000 8080

View file

@ -5,6 +5,10 @@ version: '3.8'
services:
kv-tube:
build:
context: .
args:
- NEXT_PUBLIC_API_URL=http://ut.khoavo.myds.me:8981/api
image: git.khoavo.myds.me/vndangkhoa/kv-tube:v7
container_name: kv-tube
platform: linux/amd64