Skip to content

Commit

Permalink
fix: Client docker build during deployment IV.
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Dec 6, 2023
1 parent 4bf26a2 commit 5ca2ee2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,17 @@ ARG NEXT_PUBLIC_MAPBOX_API_TOKEN
ARG LOG_LEVEL
ARG RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED

ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_URL=$NEXT_PUBLIC_URL
ENV NEXT_PUBLIC_BASE_PATH=$NEXT_PUBLIC_BASE_PATH
ENV NEXT_PUBLIC_ENVIRONMENT=$NEXT_PUBLIC_ENVIRONMENT
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_GA_TRACKING_ID=$NEXT_PUBLIC_GA_TRACKING_ID
ENV NEXT_PUBLIC_MAPBOX_API_TOKEN=$NEXT_PUBLIC_MAPBOX_API_TOKEN
ENV LOG_LEVEL=$LOG_LEVEL
ENV RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=$RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED

WORKDIR /app
COPY .yarn ./.yarn
COPY package.json .yarnrc.yml yarn.lock .prettierrc.js ./

WORKDIR /app/client
COPY ./client/package.json ./
RUN yarn install
RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn install

COPY ./client .

RUN yarn build
RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn build

# Copy only the built files into the final image
FROM node:18.15.0-bullseye-slim AS runner
Expand Down

0 comments on commit 5ca2ee2

Please sign in to comment.