Skip to content

Commit

Permalink
ci(env): use pord env
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 20, 2024
1 parent ed5ae43 commit c007487
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM registry.digitalocean.com/linkerry/base:latest AS builder
ARG NODE_ENV
ENV NEXT_TELEMETRY_DISABLED=true
ENV NEXT_PUBLIC_API_HOST=$NEXT_PUBLIC_API_HOST
RUN echo "API Host: $NEXT_PUBLIC_API_HOST"
RUN echo $NEXT_PUBLIC_API_HOST

WORKDIR /app/builder

Expand All @@ -13,8 +13,16 @@ WORKDIR /app/builder
# RUN echo "NEXT_PUBLIC_API_HOST=${NEXT_PUBLIC_API_HOST}" >> /app/builder/apps/web/.env
RUN echo "NEXT_PUBLIC_API_HOST=https://api.linkerry.com" >> /app/builder/apps/web/.env
RUN echo "NEXT_TELEMETRY_DISABLED=true" >> /app/builder/apps/web/.env
RUN echo "TEST=true" >> /app/builder/apps/web/.env
RUN echo "NEXT_PUBLIC_API_HOST=https://api.linkerry.com" >> /app/builder/apps/web/.env.production
RUN echo "NEXT_TELEMETRY_DISABLED=true" >> /app/builder/apps/web/.env.production
RUN echo "TEST=true" >> /app/builder/apps/web/.env.production
RUN cat /app/builder/apps/web/.env
RUN ls -a /app/builder/apps/web

RUN npx nx run web:build || echo "nx run web:build failed"
RUN grep -rn --include="*.js" "process.env.NEXT_PUBLIC_API_HOST" /app/builder/apps/web/.next/standalone
RUN grep -rn --include="*.js" "https://api.linkerry.com" /app/builder/apps/web/.next/standalone

FROM node:lts-alpine AS runner

Expand Down

0 comments on commit c007487

Please sign in to comment.