diff --git a/.env.example b/.env.example index 24abd746..e2a444c6 100644 --- a/.env.example +++ b/.env.example @@ -1,18 +1,22 @@ +# Runtime Environment GITHUB_ID= GITHUB_SECRET= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= +BUCKET_NAME= +BUCKET_KEY_ID= +BUCKET_KEY_SECRET= + +# Required for Pre-Render DATABASE_URL= DIRECT_URL= SHADOW_DATABASE_URL= +# Public URL NEXTAUTH_URL=http://localhost:3000 NEXT_PUBLIC_REALTIME_URL=https://rtss.crackncode.org NEXT_PUBLIC_AWS_URL=https://prginth01.sgp1.cdn.digitaloceanspaces.com -BUCKET_NAME= -BUCKET_KEY_ID= -BUCKET_KEY_SECRET= BUCKET_ENDPOINT=https://sgp1.digitaloceanspaces.com BUCKET_REGION=us-east-1 diff --git a/Dockerfile b/Dockerfile index 94bc1ce0..d1762f7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,9 @@ COPY next.config.mjs postcss.config.js tailwind.config.js tsconfig.json ./ COPY prisma ./prisma RUN pnpm prisma generate +ARG DATABASE_URL +ENV DATABASE_URL ${DATABASE_URL} + RUN pnpm build # ? -------------------------