https://github.com/hyp3rd/go-base-app-skel
A skeleton repository for starting new Go applications with recommended structure and tooling.
https://github.com/hyp3rd/go-base-app-skel
Last synced: 11 months ago
JSON representation
A skeleton repository for starting new Go applications with recommended structure and tooling.
- Host: GitHub
- URL: https://github.com/hyp3rd/go-base-app-skel
- Owner: hyp3rd
- License: mit
- Created: 2024-10-23T11:41:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T11:04:13.000Z (12 months ago)
- Last Synced: 2025-03-13T12:20:34.950Z (12 months ago)
- Language: Go
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.Docker.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Docker Environment
## Building and running your application
To build and run your application, you'll need to install Docker.
Customize the [Dockerfile](Dockerfile) and the [compose](compose.yaml) file to your liking, then, when you're ready, start your application by running:
`docker compose up --build`.
Your application will be available at .
### Deploying your application to the cloud
First, build your image, e.g.: `docker build -t app .`.
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 app .`.
Then, push it to your registry, e.g. `docker push my_registry.com/app`.
Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/)
docs for more detail on building and pushing.
### References
* [Docker's Go guide](https://docs.docker.com/language/golang/)