File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3030 run : |
3131 cp scripts/deploy.sh ./deploy.sh
3232 echo "DOCKER_HUB_USERNAME=${{ secrets.DOCKER_HUB_USERNAME }}" > .env
33- zip -r deploy.zip .env docker-compose.yml deploy.sh appspec.yml
33+
34+ zip -r deploy.zip .env docker-compose.yml deploy.sh appspec.yml \
35+ Dockerfile package.json package-lock.json next.config.mjs \
36+ pages public .next
37+
3438
3539
3640 - name : Configure AWS credentials
Original file line number Diff line number Diff line change 11# 1단계: 빌드 환경
22FROM node:18 AS builder
33
4- WORKDIR /app
5- COPY package* .json ./
4+ # package.json과 package-lock.json을 먼저 복사하고, npm install 실행
5+ COPY package.json package-lock .json ./
66RUN npm install
7+
8+ # 이후 전체 파일 복사
79COPY . .
810RUN npm run build
911
Original file line number Diff line number Diff line change 11#! /bin/bash
2- #! /bin/bash
32cd /home/ubuntu/gdgoc-fe-app
43
54# Docker & Docker Compose가 설치되어 있는지 확인
You can’t perform that action at this time.
0 commit comments