This repository was archived by the owner on May 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.15.3-alpine3.12
1+ FROM golang:1.15.3-alpine3.12 as builder
22
33WORKDIR /workdir/go
44
55ADD cmd/main.go go.mod ./
66
7- RUN go get -d -v ./... && go install -v ./... && go build main.go
7+ RUN go get -d -v ./...
8+ RUN go install -v ./...
9+ RUN go build -o dovecot-director-controller main.go
810
9- CMD ["main" ]
11+
12+ FROM alpine:3.12
13+
14+ COPY --from=builder /workdir/go/dovecot-director-controller /usr/local/bin/dovecot-director-controller
15+
16+ CMD ["/usr/local/bin/dovecot-director-controller" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ version : ' 3.3'
2+ services :
3+ dovecot-director-controller :
4+ image : angylada/dovecot-director-controller:latest
5+ build :
6+ context : ../
7+ dockerfile : ./docker/Dockerfile
8+ volumes :
9+ - ~/.kube/.config:/root/.kube/config
10+ environment :
11+ - DOVECOT_DIRECTOR_LABELS=app.kubernetes.io/instance=test,app.kubernetes.io/name=dovecot-director
12+ - DOVECOT_LABELS=app.kubernetes.io/instance=test,app.kubernetes.io/name=dovecot
13+ - DOVECOT_NAMESPACE=mail
You can’t perform that action at this time.
0 commit comments