Skip to content

Commit

Permalink
docker build test
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Sep 11, 2024
1 parent 6db3942 commit 4f89e1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

This comment has been minimized.

Copy link
@leomotors

leomotors Sep 11, 2024

Author Member

@MasterIceZ แบบนี้ปลอดภัยหรือไม่?

ใช้ prerender แต่ image น่าจะ public

This comment has been minimized.

Copy link
@MasterIceZ

MasterIceZ Sep 11, 2024

Member

มัน Build time?

RUN pnpm build

# ? -------------------------
Expand Down

0 comments on commit 4f89e1a

Please sign in to comment.