Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

partlab/ubuntu-golang

Simple base docker image to run golang applications

Usage

Build

$ docker build -t partlab/ubuntu-golang .

Download automated build

$ docker pull partlab/ubuntu-golang

Usage

Using (example)

On Dockerfile

FROM partlab/ubuntu-golang

ADD . /opt/go/src/myapp

RUN go get github.com/gin-gonic/gin
RUN go install myapp

ENTRYPOINT /opt/go/bin/myapp

EXPOSE 8080

$ docker build -t myapp .
$ docker run -p 8080:8080 --name myapp --rm myapp
Docker Pull Command
Owner
partlab
Source Repository