-
Notifications
You must be signed in to change notification settings - Fork 0
/
ol9-slim.docker
24 lines (19 loc) · 968 Bytes
/
ol9-slim.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
FROM oraclelinux:9-slim
LABEL org.opencontainers.image.title="oraclelinux" \
org.opencontainers.image.description="EK Image with Oracle Linux 9 (Slim)" \
org.opencontainers.image.vendor="ESSENTIAL KAOS" \
org.opencontainers.image.authors="Anton Novojilov" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.url="https://kaos.sh/oraclelinux" \
org.opencontainers.image.source="https://github.com/essentialkaos/oraclelinux"
COPY microdnf-check-update /sbin/
RUN sed -i 's#gpgcheck=1#gpgcheck=1\nexactarch=1#g' /etc/yum.repos.d/*.repo && \
microdnf clean all && \
microdnf -y update && \
microdnf clean all && \
rm -rf /var/cache/dnf && \
rm -rf /var/lib/dnf/* && \
rm -f /var/log/dnf* && \
rm -f /var/log/lastlog*
################################################################################