mirror of https://github.com/docker/cli.git
Add a Dockerfile for building and testing.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
31c8672805
commit
b6cba06801
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"sync/atomic"
|
"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"
|
//go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue