https://github.com/glours/devenvs-golang-generics
https://github.com/glours/devenvs-golang-generics
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/glours/devenvs-golang-generics
- Owner: glours
- License: apache-2.0
- Created: 2021-12-20T20:50:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T20:51:14.000Z (about 4 years ago)
- Last Synced: 2025-08-13T15:58:14.390Z (10 months ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Docker Dev Environments base image with Golang 18 and Generics
This repository show you how to create a Docker Environment base image to use Golang 18 and develop with Generics.
## Build your own image
You can use [Docker Buildx](https://github.com/docker/buildx) to build multiarch images:
```shell
docker buildx build --builder multi --platform=linux/amd64,linux/arm64 --push -t gloursdocker/devenv-golang18 .
```
## Use the already built image
This sample has been already built and is [available from Docker Hub](https://hub.docker.com/repository/docker/gloursdocker/devenv-golang18)
You can use it directly in your project by creating a `.docker/config.json` file in your repository with the following content
```json
{
"image": "gloursdocker/devenv-golang18"
}
```