Sign inSign up

marcelohmariano/golang

By marcelohmariano

•Updated over 5 years ago

Golang container

Image
0

991

marcelohmariano/golang repository overview

⁠Golang Container

GitHub Docker Cloud Automated build Docker Cloud Build Status

A Docker container to develop with Golang.

⁠Getting Started

These instructions will cover usage information for the Docker container.

⁠Prerequisities

In order to run this container you'll need Docker⁠ installed.

⁠Installation

Pull the image from the Docker repository:

docker pull marcelohmariano/golang
docker tag marcelohmariano/golang golang
docker rmi marcelohmariano/golang

Or build the image from source:

git clone https://github.com/marcelohmariano/golang.git
cd golang
docker build -t golang .
⁠Usage
⁠Run

Build a simple Go program:

cd /path/to/your/app.go
docker run -it --rm -v $PWD:/app -w /app golang go build app.go
⁠Volumes
  • /home/dev/go - user packages location
⁠Useful File Locations
  • /usr/local/go - global packages location

⁠Built With

⁠License

This project is licensed under the MIT License - see the LICENSE⁠ file for details.

Tag summary

Content type

Image

Digest

Size

376.8 MB

Last updated

over 5 years ago

docker pull marcelohmariano/golang