-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
28 lines (28 loc) · 1.37 KB
/
Dockerfile
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
FROM kubemq/gobuilder as builder
ARG VERSION
ARG GIT_COMMIT
ARG BUILD_TIME
ENV GOPATH=/go
ENV PATH=$GOPATH:$PATH
ENV ADDR=0.0.0.0
ADD . $GOPATH/github.com/kubemq-io/kubemq-bridges
WORKDIR $GOPATH/github.com/kubemq-io/kubemq-bridges
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags container -a -mod=vendor -installsuffix cgo -ldflags="-w -s -X main.version=$VERSION" -o kubemq-bridges-run .
FROM registry.access.redhat.com/ubi8/ubi-minimal
MAINTAINER KubeMQ [email protected]
LABEL name="KubeMQ Bridges Connectors" \
maintainer="[email protected]" \
vendor="kubemq.io" \
version="v1.5.6" \
release="stable" \
summary="KubeMQ Bridges bridge, replicate, aggregate, and transform messages between KubeMQ clusters no matter where they are, allowing to build a true cloud-native messaging single network running globally." \
description="KubeMQ Bridges bridge, replicate, aggregate, and transform messages between KubeMQ clusters no matter where they are, allowing to build a true cloud-native messaging single network running globally."
COPY licenses /licenses
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH
RUN mkdir /kubemq-connector
COPY --from=builder $GOPATH/github.com/kubemq-io/kubemq-bridges/kubemq-bridges-run ./kubemq-connector
RUN chown -R 1001:root /kubemq-connector && chmod g+rwX /kubemq-connector
WORKDIR kubemq-connector
USER 1001
CMD ["./kubemq-bridges-run"]