DEV Community

Discussion on: Dockerize Create-React-App in 3 minutes

Collapse
 
vipul2008 profile image
Vipul Goel • Edited

Here codebase is locally on your dev system I assume, when your codebase is a git repository then how will docker work? I am very new to docker, may be a silly question.

Collapse
 
ziv profile image
zivka

So it depends on the system that builds the image. You can build it locally, or build it part of CI/CD.

As you can see, we are using COPY command which means the build machine should have this code locally.. In case you are using some GitHub actions/Jenkins/circle ci just start with checkout step in order to clone the updated repo

Collapse
 
vipul2008 profile image
Vipul Goel

Awesome Thank's!!