Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 0 additions & 95 deletions .github/workflows/deploy.yml

This file was deleted.

18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# 1๋‹จ๊ณ„: ๋ชจ๋“  ์˜์กด์„ฑ ์„ค์น˜ (์บ์‹œ์šฉ)
FROM node:18-alpine AS deps
FROM node:18-alpine AS base

FROM base AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci

# 2๋‹จ๊ณ„: ๋นŒ๋“œ (standalone ๋ชจ๋“œ)
FROM node:18-alpine AS builder
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

# Next.js standalone ๋นŒ๋“œ ์ƒ์„ฑ
RUN npm run build

# 3๋‹จ๊ณ„: ํ”„๋กœ๋•์…˜ ์‹คํ–‰ ํ™˜๊ฒฝ
FROM node:18-alpine AS runner
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production

COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public

EXPOSE 3000
ENV PORT 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD ["node", "server.js"]