forked from oracle/oci-cloud-controller-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile_arm_all
More file actions
32 lines (22 loc) · 812 Bytes
/
Dockerfile_arm_all
File metadata and controls
32 lines (22 loc) · 812 Bytes
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
ARG CI_IMAGE_REGISTRY
FROM golang:1.23.4 as builder
ARG COMPONENT
ENV SRC /go/src/github.com/oracle/oci-cloud-controller-manager
ENV GOPATH /go/
RUN mkdir -p /go/bin $SRC
ADD . $SRC
WORKDIR $SRC
RUN ARCH=arm make clean build-arm-all
FROM ghcr.io/oracle/oraclelinux:8-slim-fips-arm64v8
RUN microdnf -y install util-linux e2fsprogs xfsprogs python2 && \
microdnf update && \
microdnf clean all
COPY scripts/encrypt-mount /sbin/encrypt-mount
COPY scripts/encrypt-umount /sbin/encrypt-umount
COPY scripts/rpm-host /sbin/rpm-host
COPY scripts/chroot-bash /sbin/chroot-bash
RUN chmod 755 /sbin/encrypt-mount
RUN chmod 755 /sbin/encrypt-umount
RUN chmod 755 /sbin/rpm-host
RUN chmod 755 /sbin/chroot-bash
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/arm/* /usr/local/bin/