Updated Continerfiles to minimize size

This commit is contained in:
2024-02-19 06:48:17 -06:00
parent 5fc7b39b61
commit 3095ff8d2c
7 changed files with 27 additions and 18 deletions
@@ -28,7 +28,9 @@ FROM docker.io/almalinux/9-base:latest
COPY --from=builder /usr/local/ /usr/local/
RUN dnf update -y && dnf install -y ca-certificates \
RUN printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf \
&& dnf update -y \
&& dnf install -y ca-certificates \
gnupg2 \
libatomic \
wget \
@@ -39,8 +41,8 @@ RUN dnf update -y && dnf install -y ca-certificates \
python3-setuptools \
python3-pip \
micropipenv \
&& dnf clean all && rm -fr /tmp/* /var/tmp/* \
&& cd /usr/local/libexec/c-lightning/plugins/clnrest/ && micropipenv install --method requirements
&& cd /usr/local/libexec/c-lightning/plugins/clnrest/ && micropipenv install --method requirements \
&& rm -rf /var/cache/* /var/log* /tmp/*
COPY ./entrypoint.sh /entrypoint.sh