forked from kubev2v/forklift-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
30 lines (26 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Builder image
FROM registry.access.redhat.com/ubi8/go-toolset:1.16.12 as builder
ENV GOPATH=$APP_ROOT
COPY . .
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o manager github.com/konveyor/forklift-controller/cmd/manager
# Runner image
FROM registry.access.redhat.com/ubi8/ubi-minimal
RUN microdnf -y install tar && microdnf clean all
COPY --from=builder /opt/app-root/src/manager /usr/local/bin/manager
ENV KUBEVIRT_CLIENT_GO_SCHEME_REGISTRATION_VERSION=v1
ENTRYPOINT ["/usr/local/bin/manager"]
LABEL name="konveyor/forklift-controller" \
description="Konveyor Forklift - Controller" \
help="For more information visit https://konveyor.io" \
license="Apache License 2.0" \
maintainer="jortel@redhat.com" \
summary="Konveyor Forklift - Controller" \
url="https://quay.io/repository/konveyor/forklift-controller" \
usage="podman run konveyor/forklift-controller:latest" \
com.redhat.component="konveyor-forklift-controller-container" \
io.k8s.display-name="forklift-controller" \
io.k8s.description="Konveyor Forklift - Controller" \
io.openshift.expose-services="" \
io.openshift.tags="operator,konveyor,forklift,controller" \
io.openshift.min-cpu="100m" \
io.openshift.min-memory="350Mi"