-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor: Server Dockerfile 수정 패키지 매니저를 yarn으로 변경하면서 기존 Dockerfile이 동작하지 않게 되어 업데이트함. * Refactor: build_push.sh 수정 npm 명령어를 사용하던 스크립트를 yarn을 사용하는 방식으로 변경 * Chore: 배포 스크립트 수정 yarn으로 변경한것에 맞춰서 스크립트 수정함. * Fix: test 실행 스크립트 오류 수정 * Refactor: 프론트 Dockerfile 수정 nginx를 좀더 가벼운 이미지로 변경했습니다.
- Loading branch information
1 parent
38f4d3d
commit 6dd9f41
Showing
6 changed files
with
14 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nginx | ||
FROM nginx:alpine | ||
|
||
COPY myapp.conf /etc/nginx/conf.d/default.conf | ||
COPY dist /usr/share/nginx/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
FROM node:12.18.3-alpine | ||
|
||
# 앱 디렉터리 생성 | ||
WORKDIR /usr/src/app | ||
|
||
# 앱 의존성 설치 | ||
# 가능한 경우(npm@5+) package.json과 package-lock.json을 모두 복사하기 위해 | ||
# 와일드카드를 사용 | ||
COPY package*.json ./ | ||
COPY dist/* . | ||
COPY package.json . | ||
|
||
RUN npm ci --only=production | ||
|
||
COPY ./dist ./ | ||
COPY ./.env.template ./ | ||
RUN yarn install --production | ||
|
||
EXPOSE 8080 | ||
|
||
CMD [ "node", "server.js" ] | ||
|