Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dockerfile을 만들어본 적이 없어서 이렇게 하는게 맞나 싶긴 한데, 한번 만들어보았습니다.
우선 mysql:latest를 사용해도 될지도 의문이네요. 5.7 버전으로 꼭 해야한다면 답글 달아주시기 바랍니다.
WEB(BE) 폴더에 database 폴더를 새로 만들어 그 안에 Dockerfile을 넣어두었습니다.
docker-compose up -d 명령어를 통해 실행할 수 있으며, 이 명령어로 만들어지는 컨테이너는 #32 에서 도입된 원격 MySQL 서버랑은 아예 다릅니다. 아마 개발할 때는 원격 MySQL 서버로 계속 해보고 나중에 배포할 때 이 docker-compose로 만든 MySQL을 사용할 것 같네요.
dummy를 Dockerfile 내에서 그냥 넣어버리면 배포할 때 취지랑 맞지 않는 것 같아서 (그런데 시연할 때는 데이터가 있긴 해야하니까 나중에 잘 만든 더미를 넣긴 해야할 것 같아요) 일단은 파일만 넣어두고 실행은 별도로 하는 식으로 구성해보았습니다.