Skip to content

Commit

Permalink
Merge pull request #431 from mjura/base-v2.7
Browse files Browse the repository at this point in the history
[v2.7] security: bump operator base image to bci-micro:15.5
  • Loading branch information
mjura authored Mar 14, 2024
2 parents f498c1d + d5b3f2c commit 9f28539
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 9f28539

Please sign in to comment.