chore(page): 대시보드 배포 스캐폴딩 추가(Dockerfile + compose 예시, OAuth redirect 안내)

This commit is contained in:
tkrmagid
2026-09-12 22:56:58 +09:00
parent 1efa55c3ec
commit 221c31bfa1
2 changed files with 42 additions and 0 deletions

21
page/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# music_bot_v2 대시보드(page/) — Next.js 16
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# next build 시 라우트 모듈 평가 단계에서 env 미설정이면 throw 되므로, 빌드용 더미 env를 넣는다.
# (실제 값은 런타임에 compose의 environment로 주입 — 아래 값은 빌드 통과용 placeholder)
ENV DISCORD_CLIENT_ID=build \
DISCORD_CLIENT_SECRET=build \
NEXTAUTH_SECRET=build \
NEXTAUTH_URL=http://localhost:3000 \
REDIS_HOST=127.0.0.1 \
REDIS_PORT=6379
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start"]