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:
parent
e62722a079
commit
853e072a05
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user