/ inception / practice / docker-init / README.Docker.md
README.Docker.md
 1  ### Building and running your application
 2  
 3  When you're ready, start your application by running:
 4  `docker compose up --build`.
 5  
 6  ### Deploying your application to the cloud
 7  
 8  First, build your image, e.g.: `docker build -t myapp .`.
 9  If your cloud uses a different CPU architecture than your development
10  machine (e.g., you are on a Mac M1 and your cloud provider is amd64),
11  you'll want to build the image for that platform, e.g.:
12  `docker build --platform=linux/amd64 -t myapp .`.
13  
14  Then, push it to your registry, e.g. `docker push myregistry.com/myapp`.
15  
16  Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/)
17  docs for more detail on building and pushing.