Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numq/dockerize-go
Docker Multi-stage Build for Tiny Go Image Deployment
https://github.com/numq/dockerize-go
docker docker-binary docker-compose dockerfile go golang multistage-build tiny-image
Last synced: about 1 month ago
JSON representation
Docker Multi-stage Build for Tiny Go Image Deployment
- Host: GitHub
- URL: https://github.com/numq/dockerize-go
- Owner: numq
- License: mit
- Created: 2022-12-28T00:12:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T21:51:49.000Z (9 months ago)
- Last Synced: 2024-04-06T22:31:43.302Z (9 months ago)
- Topics: docker, docker-binary, docker-compose, dockerfile, go, golang, multistage-build, tiny-image
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerize Go
Docker Multi-stage Build for Tiny Go Image Deployment.
*[Multi-stage](https://docs.docker.com/build/building/multi-stage/) - *this is a way to reduce an image size creating an
empty image and copying the binary file into it.*
- First stage
- Create a new image
- Install dependencies
- Build binaries
- Second stage
- Create a new image
- Copy binaries
- Launch
# Run:
```
docker compose up [OPTIONS] [SERVICE...]
```