Browse Source

add Dockerfile

tags/0.0.2
Vladimir Smagin 3 months ago
parent
commit
3193665b2a
Signed by: Vladimir Smagin <21h@blindage.org> GPG Key ID: 13BCE12E5618F071
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      Dockerfile

+ 18
- 0
Dockerfile View File

@@ -0,0 +1,18 @@
FROM golang:1.12-alpine

RUN apk update
RUN apk add git mercurial

WORKDIR /app/wordpress-operator
COPY . .

WORKDIR /app/wordpress-operator/cmd/manager

RUN CGO_ENABLED=0 go build
RUN go install

FROM alpine:3.10

COPY --from=0 /go/bin/manager /usr/local/bin/wordpress-operator

ENTRYPOINT ["/usr/local/bin/entrypoint"]

Loading…
Cancel
Save