Browse Source

add Dockerfile

master
Vladimir Smagin 1 year ago
parent
commit
c52f01f7f1
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      Dockerfile

+ 20
- 0
Dockerfile View File

@ -0,0 +1,20 @@
FROM golang:1.12-alpine
RUN apk update
RUN apk add git mercurial
WORKDIR /go/src/github.com/tekliner/redis-operator
COPY . .
WORKDIR /go/src/github.com/tekliner/redis-operator/cmd/manager
RUN GO111MODULE=on go mod vendor
RUN GO111MODULE=on go mod verify
RUN CGO_ENABLED=0 go build
RUN go install
FROM alpine:3.10
COPY --from=0 /go/bin/manager /usr/local/bin/redis-operator
ENTRYPOINT ["/usr/local/bin/entrypoint"]

Loading…
Cancel
Save