Add a Dockerfile for building and testing.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
master
Daniel Nephin 2017-04-18 19:12:24 -04:00
parent 31c8672805
commit b6cba06801
2 changed files with 17 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package main
import (
"sync/atomic"
_ "github.com/docker/docker/autogen/winresources/docker"
_ "github.com/docker/cli/autogen/winresources"
)
//go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"

View File

@ -0,0 +1,16 @@
FROM golang:1.8-alpine
RUN apk add -U git
RUN go get github.com/LK4D4/vndr && \
cp /go/bin/vndr /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*
RUN go get github.com/mitchellh/gox && \
cp /go/bin/gox /usr/bin && \
rm -rf /go/src/* /go/pkg/* /go/bin/*
ENV CGO_ENABLED=0
WORKDIR /go/src/github.com/docker/cli
CMD sh