Skip to content

Commit

Permalink
chore: try just dollar sign for build-args
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmc9 committed Oct 10, 2024
1 parent 7e82237 commit aaeefab
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,18 @@ RUN \
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED=1

ARG NEXT_PUBLIC_SUPABASE_URL
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY
ARG NEXT_PUBLIC_R2_ACCOUNT_ID
ARG NEXT_PUBLIC_R2_ACCESS_KEY_ID
ARG NEXT_PUBLIC_R2_SECRET_ACCESS_KEY
ARG NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
ARG NEXT_PUBLIC_MERKLE_TREES_BUCKET
ARG NEXT_PUBLIC_IMAGE_UPLOAD_BUCKET
ARG NEXT_PUBLIC_ETHERSCAN_KEY
ARG NEXT_PUBLIC_QUICKNODE_SLUG
ARG NEXT_PUBLIC_QUICKNODE_KEY
ARG NEXT_PUBLIC_ALCHEMY_KEY

ENV NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
ENV NEXT_PUBLIC_R2_ACCOUNT_ID=${NEXT_PUBLIC_R2_ACCOUNT_ID}
ENV NEXT_PUBLIC_R2_ACCESS_KEY_ID=${NEXT_PUBLIC_R2_ACCESS_KEY_ID}
ENV NEXT_PUBLIC_R2_SECRET_ACCESS_KEY=${NEXT_PUBLIC_R2_SECRET_ACCESS_KEY}
ENV NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=${NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID}
ENV NEXT_PUBLIC_MERKLE_TREES_BUCKET=${NEXT_PUBLIC_MERKLE_TREES_BUCKET}
ENV NEXT_PUBLIC_IMAGE_UPLOAD_BUCKET=${NEXT_PUBLIC_IMAGE_UPLOAD_BUCKET}
ENV NEXT_PUBLIC_ETHERSCAN_KEY=${NEXT_PUBLIC_ETHERSCAN_KEY}
ENV NEXT_PUBLIC_QUICKNODE_SLUG=${NEXT_PUBLIC_QUICKNODE_SLUG}
ENV NEXT_PUBLIC_QUICKNODE_KEY=${NEXT_PUBLIC_QUICKNODE_KEY}
ENV NEXT_PUBLIC_ALCHEMY_KEY=${NEXT_PUBLIC_ALCHEMY_KEY}
ENV NEXT_PUBLIC_SUPABASE_URL=$NEXT_PUBLIC_SUPABASE_URL
ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=$NEXT_PUBLIC_SUPABASE_ANON_KEY
ENV NEXT_PUBLIC_R2_ACCOUNT_ID=$NEXT_PUBLIC_R2_ACCOUNT_ID
ENV NEXT_PUBLIC_R2_ACCESS_KEY_ID=$NEXT_PUBLIC_R2_ACCESS_KEY_ID
ENV NEXT_PUBLIC_R2_SECRET_ACCESS_KEY=$NEXT_PUBLIC_R2_SECRET_ACCESS_KEY
ENV NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=$NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
ENV NEXT_PUBLIC_MERKLE_TREES_BUCKET=$NEXT_PUBLIC_MERKLE_TREES_BUCKET
ENV NEXT_PUBLIC_IMAGE_UPLOAD_BUCKET=$NEXT_PUBLIC_IMAGE_UPLOAD_BUCKET
ENV NEXT_PUBLIC_ETHERSCAN_KEY=$NEXT_PUBLIC_ETHERSCAN_KEY
ENV NEXT_PUBLIC_QUICKNODE_SLUG=$NEXT_PUBLIC_QUICKNODE_SLUG
ENV NEXT_PUBLIC_QUICKNODE_KEY=$NEXT_PUBLIC_QUICKNODE_KEY
ENV NEXT_PUBLIC_ALCHEMY_KEY=$NEXT_PUBLIC_ALCHEMY_KEY

RUN \
if [ -f yarn.lock ]; then yarn run build; \
Expand Down

0 comments on commit aaeefab

Please sign in to comment.