-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
39 lines (30 loc) · 1.31 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 oci.stackable.tech/sdp/ubi9-rust-builder AS builder
FROM registry.access.redhat.com/ubi9/ubi-minimal AS operator
ARG VERSION
ARG RELEASE="1"
LABEL name="Stackable Operator for Stackable Secret Operator" \
maintainer="info@stackable.tech" \
vendor="Stackable GmbH" \
version="${VERSION}" \
release="${RELEASE}" \
summary="Deploy and manage Stackable Secret Operator clusters." \
description="Deploy and manage Stackable Secret Operator clusters."
# Update image and install kerberos client libraries
# install_weak_deps in microdnf does not support the literal "False" as dnf does
# https://github.com/rpm-software-management/microdnf/blob/a600c62f29262d71a6259b70dc220df65a2ab9b5/dnf/dnf-main.c#L176-L189
RUN microdnf update -y --setopt=install_weak_deps=0 \
&& microdnf install -y --setopt=install_weak_deps=0 \
krb5-libs \
libkadm5 \
&& microdnf clean all \
&& rm -rf /var/cache/yum
COPY LICENSE /licenses/LICENSE
COPY --from=builder /app/* /usr/local/bin/
RUN groupadd -g 1000 stackable && adduser -u 1000 -g stackable -c 'Stackable Operator' stackable
USER stackable:stackable
ENTRYPOINT ["stackable-secret-operator"]
CMD ["run"]