-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (29 loc) · 1.2 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
29
30
31
32
33
34
35
36
37
38
39
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# =============
FROM docker.stackable.tech/stackable/ubi8-rust-builder AS builder
FROM registry.access.redhat.com/ubi8/ubi-minimal AS operator
ARG VERSION
ARG RELEASE="1"
LABEL name="Stackable Operator for OpenPolicyAgent" \
maintainer="[email protected]" \
vendor="Stackable GmbH" \
version="${VERSION}" \
release="${RELEASE}" \
summary="Deploy and manage OpenPolicyAgent clusters." \
description="Deploy and manage OpenPolicyAgent clusters."
# Update image
RUN microdnf install -y yum \
&& yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
&& yum clean all \
&& microdnf clean all
# Install kerberos client libraries
RUN microdnf install -y krb5-libs libkadm5 && microdnf clean all
COPY LICENSE /licenses/LICENSE
COPY --from=builder /app/* /usr/local/bin/
COPY deploy/config-spec/properties.yaml /etc/stackable/opa-operator/config-spec/properties.yaml
RUN groupadd -g 1000 stackable && adduser -u 1000 -g stackable -c 'Stackable Operator' stackable
USER stackable:stackable
ENTRYPOINT ["stackable-opa-operator"]
CMD ["run"]