인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

2yonghyun's profile image
2yonghyun

asked

Learn Docker and CI environment by following [2023.11 update]

Creating an API for Travis CI to access AWS

Dockerfile와 Dockerfile.dev의 배포 관련 질문

Written on

·

198

0

docker-compose.yml 등을 본다면 아래와 같이 대부분 아래와 같이 dockerfile의 설정이 Dockerfile.dev로 되어있습니다. 다만 Dockerfile(NginX와 Compose 80등을 설정)가 배포를 위한 도커파일이라고 하셨는데 이를 별도로 지정하지 않아도 괜찮은 건가요?

결국 EBL에서 docker-compose up이 불리는 거라고 생각되는데 이때 Dockerfile.dev을 통해 빌드하는지 Dockerfile을 통해 빌드하는지 알고 싶습니다.

version: "3"
services:
react:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- /usr/src/app/node_modules
- ./:/usr/src/app
stdin_open: true
tests:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- /usr/src/app/node_modules
- ./:/usr/src/app
command: ["npm", "run", "test"]
awsgithubdockertravis-ci데이터 엔지니어링cicd

Answer

This question is waiting for answers
Be the first to answer!
2yonghyun's profile image
2yonghyun

asked

Ask a question