Skip to content

Commit

Permalink
chore: remove unneeded vars for build
Browse files Browse the repository at this point in the history
  • Loading branch information
thewander02 committed Jan 8, 2025
1 parent 91a6480 commit 05a722e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,11 @@ FROM oven/bun:1 AS base
WORKDIR /app

ARG DATABASE_URL
ARG DISCORD_CLIENT_ID
ARG DISCORD_CLIENT_SECRET
ARG DISCORD_CLIENT_SECRET
ARG DISCORD_WEBHOOK_URL
ARG PUBLIC_STRIPE_KEY
ARG SECRET_STRIPE_KEY

COPY package.json bun.lockb* ./
COPY prisma ./prisma/
RUN --mount=type=secret,id=DATABASE_URL \
--mount=type=secret,id=DISCORD_CLIENT_ID \
--mount=type=secret,id=DISCORD_CLIENT_SECRET \
--mount=type=secret,id=DISCORD_WEBHOOK_URL \
--mount=type=secret,id=PUBLIC_STRIPE_KEY \
--mount=type=secret,id=SECRET_STRIPE_KEY \
DATABASE_URL=$(cat /run/secrets/DATABASE_URL) \
DISCORD_CLIENT_ID=$(cat /run/secrets/DISCORD_CLIENT_ID) \
DISCORD_CLIENT_SECRET=$(cat /run/secrets/DISCORD_CLIENT_SECRET) \
DISCORD_WEBHOOK_URL=$(cat /run/secrets/DISCORD_WEBHOOK_URL) \
PUBLIC_STRIPE_KEY=$(cat /run/secrets/PUBLIC_STRIPE_KEY) \
SECRET_STRIPE_KEY=$(cat /run/secrets/SECRET_STRIPE_KEY) \
bun install --frozen-lockfile && bunx prisma generate

COPY . .
Expand Down

0 comments on commit 05a722e

Please sign in to comment.