Skip to content

Commit

Permalink
Merge pull request #429 from mjura/base-main
Browse files Browse the repository at this point in the history
security: bump operator base image to bci-micro:15.5
  • Loading branch information
mjura authored Mar 14, 2024
2 parents 6cebe9c + 271d4d0 commit 0e4b4b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.suse.com/bci/bci-base:15.4
FROM registry.suse.com/bci/bci-base:15.6

ARG DAPPER_HOST_ARCH
ENV ARCH=${DAPPER_HOST_ARCH}
Expand Down
13 changes: 9 additions & 4 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM registry.suse.com/bci/bci-base:15.4
RUN zypper update -y && \
zypper -n clean -a && \
rm -rf /tmp/* /var/tmp/* /usr/share/doc/packages/*
FROM registry.suse.com/bci/bci-base:15.5 AS builder
RUN sed -i 's/^CREATE_MAIL_SPOOL=yes/CREATE_MAIL_SPOOL=no/' /etc/default/useradd
RUN useradd --uid 1007 aks-operator

FROM registry.suse.com/bci/bci-micro:15.5
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/shadow /etc/shadow

RUN rm -rf /tmp/* /var/tmp/* /usr/share/doc/packages/*

ENV KUBECONFIG /home/aks-operator/.kube/config
ENV SSL_CERT_DIR /etc/rancher/ssl

Expand Down

0 comments on commit 0e4b4b6

Please sign in to comment.