Merge pull request #1857 from openziti/dockerfile-reduce

reduce Docker image sizes
This commit is contained in:
Kenneth Bingham
2024-03-21 11:41:44 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ USER root
### install packages
RUN INSTALL_PKGS="python3.11 python3.11-pip tar bash-completion vim-minimal less shadow-utils jq findutils" && \
microdnf -y update --setopt=install_weak_deps=0 --setopt=tsflags=nodocs && \
microdnf -y install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs ${INSTALL_PKGS}
microdnf -y install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
microdnf clean all
### install OpenShift CLI (oc)
# FIXME: This repo requires terms acceptance and is only available on registry.redhat.io.
+3 -1
View File
@@ -18,7 +18,9 @@ LABEL name="openziti/ziti-tunnel" \
USER root
RUN INSTALL_PKGS="util-linux iptables" && \
microdnf -y update --setopt=install_weak_deps=0 --setopt=tsflags=nodocs && \
microdnf -y install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs ${INSTALL_PKGS}
microdnf -y install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
microdnf clean all
WORKDIR /netfoundry
COPY ./entrypoint.sh /
RUN chmod +x /entrypoint.sh