ponday-dev / golang-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang on Docker

The purpose of this repository is to run and build Golang on the Docker container.

It is using Alpine Linux based Golang Docker image. And also, it uses the make as task runner.

How to use

Build image

git clone https://github.com/ponday-dev/golang-docker.git
docker-compose build

Install packages for golang

make get PACKAGE=<package_name>

When this command is executed, the dependency is record in the work/go.mod file and you will be able to use that feature.

Run source file

make run

Build file

make build

About


Languages

Language:Makefile 59.6%Language:Dockerfile 23.2%Language:Go 17.3%