diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 0e01658..b65c884 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -14,6 +14,11 @@ RUN pnpm install --frozen-lockfile --filter @goodgo/web... # ---- Build ---- FROM base AS build +# NEXT_PUBLIC_* vars are baked into JS bundle at build time +ARG NEXT_PUBLIC_API_URL=https://api.goodgo.vn +ARG NEXT_PUBLIC_WEB_URL=https://platform.goodgo.vn +ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL +ENV NEXT_PUBLIC_WEB_URL=$NEXT_PUBLIC_WEB_URL COPY --from=deps /app/.npmrc ./ COPY --from=deps /app/node_modules ./node_modules COPY tsconfig.base.json ./