add Dockerfile

This commit is contained in:
Andy Cobaugh 2018-11-13 17:24:00 -05:00
parent e62722a079
commit 853e072a05
1 changed files with 15 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM golang:1.10-alpine3.7
WORKDIR /go/src/vsphere-influxdb-go
COPY . .
RUN apk --update add --virtual build-deps git \
&& go get -d -v ./... \
&& go install -v ./... \
&& rm -rf /go/src \
&& apk del build-deps
RUN addgroup -S spock && adduser -S spock -G spock
USER spock
CMD ["/vsphere-influxdb-go"]