We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4af537 commit 74a15e7Copy full SHA for 74a15e7
2 files changed
.dockerignore
@@ -0,0 +1,9 @@
1
+node_modules
2
+dist
3
+.git
4
+.gitignore
5
+Dockerfile
6
+docker-compose.yml
7
+npm-debug.log
8
+yarn-error.log
9
+*.md
Dockerfile
@@ -0,0 +1,21 @@
+# syntax=docker/dockerfile:1
+
+FROM node:23.11-alpine
+# 작업 디렉터리 생성
+WORKDIR /app
+# 종속성 설치를 위해 패키지 파일만 복사
+COPY package.json yarn.lock ./
10
11
+# node_modules는 컨테이너 내부에 설치 (호스트와 공유 X)
12
+RUN yarn install
13
14
+# 개발 시 소스는 볼륨 마운트로 대체 (아래 COPY는 빌드용, dev 컨테이너에서는 무시됨)
15
+COPY . .
16
17
+# Vite 개발 서버 포트(5173) 오픈
18
+EXPOSE 5173
19
20
+# 개발 서버 실행 (핫 리로드)
21
+CMD ["yarn", "dev"]
0 commit comments