forked from openshift-service-mesh/sail-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM registry.access.redhat.com/ubi10/ubi:latest AS packager
ARG TARGETOS TARGETARCH
RUN dnf -y --setopt=install_weak_deps=0 --nodocs \
--installroot /output install \
setup \
&& dnf clean all --installroot /output
RUN [ -d /usr/share/buildinfo ] && cp -a /usr/share/buildinfo /output/usr/share/buildinfo ||:
RUN [ -d /root/buildinfo ] && cp -a /root/buildinfo /output/root/buildinfo ||:
FROM scratch
ARG TARGETOS TARGETARCH
COPY --from=packager /output /
ADD out/${TARGETOS:-linux}_${TARGETARCH:-amd64}/sail-operator /sail-operator
ADD resources /var/lib/sail-operator/resources
USER 65532:65532
WORKDIR /
ENTRYPOINT ["/sail-operator"]