Skip to content

Commit

Permalink
Merge pull request #114 from klaus9267/feature-ci/cd
Browse files Browse the repository at this point in the history
Refactor(minho/cicd): dockerfile, compose 파일 이동 #113
  • Loading branch information
klaus9267 authored Oct 24, 2022
2 parents 5a2101a + 36a27bb commit 56fe43c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 32 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3.8"

services:
nest:
build:
context: .
dockerfile: ./dockerfile
env_file: .env
ports:
- "3000:3000"
container_name: nest-prod
restart: always
10 changes: 10 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:16.15.1 AS builder

WORKDIR /testDir

COPY ./main-project .

RUN npm install --force
RUN npm run build

CMD ["npm", "run", "start:prod"]
20 changes: 0 additions & 20 deletions main-project/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions main-project/docker-compose.yml

This file was deleted.

0 comments on commit 56fe43c

Please sign in to comment.