Skip to content

Commit 4f89e1a

Browse files
committed
docker build test
1 parent 6db3942 commit 4f89e1a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.env.example

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1+
# Runtime Environment
12
GITHUB_ID=
23
GITHUB_SECRET=
34
GOOGLE_CLIENT_ID=
45
GOOGLE_CLIENT_SECRET=
56

7+
BUCKET_NAME=
8+
BUCKET_KEY_ID=
9+
BUCKET_KEY_SECRET=
10+
11+
# Required for Pre-Render
612
DATABASE_URL=
713
DIRECT_URL=
814
SHADOW_DATABASE_URL=
915

16+
# Public URL
1017
NEXTAUTH_URL=http://localhost:3000
1118
NEXT_PUBLIC_REALTIME_URL=https://rtss.crackncode.org
1219
NEXT_PUBLIC_AWS_URL=https://prginth01.sgp1.cdn.digitaloceanspaces.com
1320

14-
BUCKET_NAME=
15-
BUCKET_KEY_ID=
16-
BUCKET_KEY_SECRET=
1721
BUCKET_ENDPOINT=https://sgp1.digitaloceanspaces.com
1822
BUCKET_REGION=us-east-1

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ COPY next.config.mjs postcss.config.js tailwind.config.js tsconfig.json ./
4141
COPY prisma ./prisma
4242
RUN pnpm prisma generate
4343

44+
ARG DATABASE_URL
45+
ENV DATABASE_URL ${DATABASE_URL}
46+
4447
RUN pnpm build
4548

4649
# ? -------------------------

0 commit comments

Comments
 (0)