diff --git a/Dockerfile b/Dockerfile index e85c66c..64d8a57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ FROM base AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -ARG NEXT_PUBLIC_API_URL -ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL +ARG NEXT_PUBLIC_API_BASE_URL +ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL RUN npm run build FROM base AS runner diff --git a/docker-compose.yml b/docker-compose.yml index d022708..fd12d22 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,12 +4,13 @@ services: context: . dockerfile: Dockerfile args: - NEXT_PUBLIC_API_URL: http://localhost:3000/api + NEXT_PUBLIC_API_BASE_URL: https://habibapp.com ports: - "5561:3000" environment: - NODE_ENV=production - - NEXT_PUBLIC_API_URL=http://localhost:3000/api + - NEXT_PUBLIC_API_BASE_URL=https://habibapp.com + - NEXT_PUBLIC_SECURITY_KEY=t5yugymks5458fd4ghfg6h6 restart: unless-stopped healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"] diff --git a/runner.sh b/runner.sh old mode 100644 new mode 100755