Joey Hafner
97e4cc547a
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting). - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`? 2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev). 3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles). 4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm) 5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi) 6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd) 7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash) 8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it). 9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB) 10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker) 11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
22 lines
826 B
Markdown
22 lines
826 B
Markdown
### Building and running your application
|
|
|
|
When you're ready, start your application by running:
|
|
`docker compose up --build`.
|
|
|
|
Your application will be available at http://localhost:8000.
|
|
|
|
### Deploying your application to the cloud
|
|
|
|
First, build your image, e.g.: `docker build -t myapp .`.
|
|
If your cloud uses a different CPU architecture than your development
|
|
machine (e.g., you are on a Mac M1 and your cloud provider is amd64),
|
|
you'll want to build the image for that platform, e.g.:
|
|
`docker build --platform=linux/amd64 -t myapp .`.
|
|
|
|
Then, push it to your registry, e.g. `docker push myregistry.com/myapp`.
|
|
|
|
Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/)
|
|
docs for more detail on building and pushing.
|
|
|
|
### References
|
|
* [Docker's Python guide](https://docs.docker.com/language/python/) |