Skip to content

Commit

Permalink
i am running out of meaningfull commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fangmarks committed Jan 8, 2025
1 parent d717e5a commit b40dab6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
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

# Get all Secrets
RUN --mount=type=secret,id=DATABASE_URL \
DATABASE_URL="$(cat /run/secrets/DATABASE_URL)"
Expand All @@ -17,6 +25,14 @@ RUN --mount=type=secret,id=SECRET_STRIPE_KEY \
RUN --mount=type=secret,id=WEBHOOK_SIGNING_SECRET \
WEBHOOK_SIGNING_SECRET="$(cat /run/secrets/WEBHOOK_SIGNING_SECRET)"

ENV DATABASE_URL=${DATABASE_URL}
ENV DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
ENV DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET}
ENV DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET}
ENV DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
ENV PUBLIC_STRIPE_KEY=${PUBLIC_STRIPE_KEY}
ENV SECRET_STRIPE_KEY=${SECRET_STRIPE_KEY}

COPY package.json bun.lockb* ./
COPY prisma ./prisma/
RUN bun install --frozen-lockfile
Expand Down

0 comments on commit b40dab6

Please sign in to comment.