Skip to content

Commit

Permalink
Merge pull request #54 from ms-club-sliit/stargazer39-patch-2
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
stargazer39 authored Aug 13, 2024
2 parents e3bd077 + 87a2fa1 commit 414f859
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ WORKDIR /app

COPY package.json pnpm-lock.yaml ./

ENV NEXT_PUBLIC_FIREBASE_API_KEY=${NEXT_PUBLIC_FIREBASE_API_KEY}
ENV NEXT_PUBLIC_AUTH_DOMAIN=${NEXT_PUBLIC_AUTH_DOMAIN}
ENV NEXT_PUBLIC_PROJECT_ID=${NEXT_PUBLIC_PROJECT_ID}
ENV NEXT_PUBLIC_STORAGE_BUCKET=${NEXT_PUBLIC_STORAGE_BUCKET}
ENV NEXT_PUBLIC_MESSAGING_SENDER_ID=${NEXT_PUBLIC_MESSAGING_SENDER_ID}
ENV NEXT_PUBLIC_APP_ID=${NEXT_PUBLIC_APP_ID}
ENV NEXT_PUBLIC_MEASUREMENT_ID=${NEXT_PUBLIC_MEASUREMENT_ID}
ENV NEXT_PUBLIC_FIREBASE_COLLECTION_PREFIX=${NEXT_PUBLIC_FIREBASE_COLLECTION_PREFIX}
ENV NEXT_PUBLIC_EMAIL_ENDPOINT=${NEXT_PUBLIC_EMAIL_ENDPOINT}

RUN pnpm install

# Builder
Expand All @@ -40,6 +30,17 @@ WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules
COPY . .

ENV NEXT_PUBLIC_FIREBASE_API_KEY=${NEXT_PUBLIC_FIREBASE_API_KEY}
ENV NEXT_PUBLIC_AUTH_DOMAIN=${NEXT_PUBLIC_AUTH_DOMAIN}
ENV NEXT_PUBLIC_PROJECT_ID=${NEXT_PUBLIC_PROJECT_ID}
ENV NEXT_PUBLIC_STORAGE_BUCKET=${NEXT_PUBLIC_STORAGE_BUCKET}
ENV NEXT_PUBLIC_MESSAGING_SENDER_ID=${NEXT_PUBLIC_MESSAGING_SENDER_ID}
ENV NEXT_PUBLIC_APP_ID=${NEXT_PUBLIC_APP_ID}
ENV NEXT_PUBLIC_MEASUREMENT_ID=${NEXT_PUBLIC_MEASUREMENT_ID}
ENV NEXT_PUBLIC_FIREBASE_COLLECTION_PREFIX=${NEXT_PUBLIC_FIREBASE_COLLECTION_PREFIX}
ENV NEXT_PUBLIC_EMAIL_ENDPOINT=${NEXT_PUBLIC_EMAIL_ENDPOINT}

RUN pnpm build


Expand Down

0 comments on commit 414f859

Please sign in to comment.