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
+3 -2
View File
@@ -4,7 +4,8 @@ ENV LNBITS_VER={{lnbits_version}}
WORKDIR /app
RUN dnf update -y \
RUN printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf \
&& dnf update -y \
&& dnf install -y git \
python3.11 \
python3.11-devel \
@@ -26,7 +27,7 @@ RUN dnf update -y \
COPY .env .env
RUN dnf autoremove -y python3.11-devel gcc automake make \
&& dnf clean all \
&& rm -fr /tmp/*
&& rm -rf /var/cache/* /var/log* /tmp/*
ENV PATH="/root/.local/bin:$PATH"
ENV LNBITS_PORT="5000"