Skip to content

Commit 3d94908

Browse files
authored
Merge pull request #64 from GDSCINHA/develop
fix: 도커 빌드 시 오류
2 parents ecae365 + c66b1dc commit 3d94908

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN npm install
1111
COPY . .
1212
RUN npm run build
1313

14+
RUN ls -l /app
15+
1416
# 2단계: 실행 환경
1517
FROM node:18
1618

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ services:
1010
environment:
1111
NODE_ENV: production
1212
volumes:
13-
- .:/app # 코드 변경 사항을 반영하려면 필요
13+
- .:/app
14+
- /app/node_modules
1415
working_dir: /app
1516
command: "npm run start"
1617

0 commit comments

Comments
 (0)