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
4 changes: 2 additions & 2 deletions client/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM node:22-alpine AS builder
WORKDIR /var/web05-Denamu/client

# 필요한 파일만 복사하여 캐시 활용
COPY ../package*.json ./
COPY package*.json ./

# 의존성 설치
RUN npm ci
Expand All @@ -17,7 +17,7 @@ FROM node:22-alpine
WORKDIR /var/web05-Denamu/client

# 최종 애플리케이션 코드만 복사
COPY .. .
COPY . .

# 빌드된 node_modules만 복사
COPY --from=builder /var/web05-Denamu/client/node_modules ./node_modules
Expand Down
5 changes: 4 additions & 1 deletion client/docker/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ FROM node:22-alpine AS builder

WORKDIR /var/web05-Denamu/client

COPY ./client .
COPY ./client/package*.json ./
ENV VITE_VISUALIZE=OFF

RUN npm ci

COPY ./client .

RUN npm run build:local

RUN mkdir -p /etc/nginx/scripts
Expand Down
4 changes: 3 additions & 1 deletion email-worker/docker/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM node:22-alpine AS builder

WORKDIR /var/web05-Denamu/email-worker

COPY . .
COPY package*.json ./

RUN npm ci

COPY . .

RUN npm run build

FROM node:22-alpine
Expand Down
6 changes: 5 additions & 1 deletion email-worker/docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ FROM node:22-alpine AS builder

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . .

RUN npm ci && npm run build
RUN npm run build

FROM node:22-alpine

Expand Down
4 changes: 3 additions & 1 deletion feed-crawler/docker/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM node:22-alpine AS builder

WORKDIR /var/web05-Denamu/feed-crawler

COPY . .
COPY package*.json ./

RUN npm ci

COPY . .

RUN npm run build

FROM node:22-alpine
Expand Down
6 changes: 5 additions & 1 deletion feed-crawler/docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ FROM node:22-alpine AS builder

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . .

RUN npm ci && npm run build
RUN npm run build

FROM node:22-alpine

Expand Down
4 changes: 3 additions & 1 deletion server/docker/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ FROM node:22-alpine AS builder

WORKDIR /var/web05-Denamu/server

COPY . .
COPY package*.json ./

RUN npm ci

COPY . .

RUN npm run build

# 실행 빌드
Expand Down
4 changes: 3 additions & 1 deletion server/docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM node:22-alpine AS builder

WORKDIR /app

COPY . .
COPY package*.json ./

RUN npm ci

COPY . .

RUN npm run build

FROM node:22-alpine
Expand Down