Skip to content

Commit

Permalink
fix: frontend docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Feb 15, 2024
1 parent a8e8b14 commit 5fd44eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ FROM dependency-base AS production-base
# if necessary
COPY frontend /app/frontend
COPY api /app/api

WORKDIR /app/api
RUN yarn install --frozen-lockfile
WORKDIR /app/frontend
RUN npm install -g pnpm
ENV NODE_ENV=production
RUN pnpm install

# Set env vars before build
WORKDIR /app/frontend
ARG API_BASE=""
ENV API_BASE=${API_BASE}
ARG API_GQL_ENDPOINT=/wundergraph/graphql
ENV API_GQL_ENDPOINT=${API_BASE}

RUN npm run build

FROM $NODE_VERSION AS production
Expand Down

0 comments on commit 5fd44eb

Please sign in to comment.