Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purini-to/go-docker-scratch
smallest and fast build golang docker image based on scratch(Image size 3.5MB). use Buildkit.
https://github.com/purini-to/go-docker-scratch
buildkit docker go golang
Last synced: 2 months ago
JSON representation
smallest and fast build golang docker image based on scratch(Image size 3.5MB). use Buildkit.
- Host: GitHub
- URL: https://github.com/purini-to/go-docker-scratch
- Owner: purini-to
- License: mit
- Created: 2019-05-24T01:13:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T02:30:38.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:29:08.687Z (6 months ago)
- Topics: buildkit, docker, go, golang
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - go-docker-scratch
README
# go-docker-scratch
smallest golang docker image based on scratch. use [Buildkit](https://github.com/moby/buildkit).
## Installation
Clone a directory outside of your GOPATH because it is using [go modules](https://github.com/golang/go/wiki/Modules)
```
git clone https://github.com/purini-to/go-docker-scratch
cd go-docker-scratch
```## Quick Start
```bash
DOCKER_BUILDKIT=1 docker build . -t purini-to/go-docker-scratchdocker images
# REPOSITORY TAG IMAGE ID CREATED SIZE
# purini-to/go-docker-scratch latest d236e2c9a7d1 13 minutes ago 3.49MBdocker run --rm -p 3000:3000 purini-to/go-docker-scratch
```#### Go to [http://localhost:3000/](http://localhost:3000/)
#### Go to [http://localhost:3000/time?tz=America/Los_Angeles](http://localhost:3000/time?tz=America/Los_Angeles)
#### Go to [http://localhost:3000/api](http://localhost:3000/api)