Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ajoulib-phrase
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
화균 김
ajoulib-phrase
Commits
cd5c1c75
Commit
cd5c1c75
authored
3 weeks ago
by
화균 김
Browse files
Options
Downloads
Patches
Plain Diff
ops: add Dockerfile
parent
c1f2b4f1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+20
-0
20 additions, 0 deletions
Dockerfile
with
20 additions
and
0 deletions
Dockerfile
0 → 100644
+
20
−
0
View file @
cd5c1c75
# 노드 이미지를 기반으로 Dockerfile 작성
FROM
node:14-alpine
# 앱 디렉토리 생성
WORKDIR
/usr/src/app
# package.json 및 package-lock.json을 복사하여 종속성 설치를 위해 추가
COPY
package*.json ./
# 종속성 설치
RUN
npm
install
# 앱 소스 코드 복사
COPY
. .
# 앱 빌드
RUN
npm run build
# 앱 실행을 위한 명령어 정의
CMD
["npm", "start"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment