1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 11:36:51 +00:00

add Dockerfile

This commit is contained in:
Andy Cobaugh 2018-11-13 17:24:00 -05:00
parent e62722a079
commit 853e072a05

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"]