Reduced Docker images to a single layer.

This commit is contained in:
Fabio Manganiello 2024-01-15 21:54:22 +01:00
parent bf1b8aaf70
commit 3598253558
Signed by: blacklight
GPG key ID: D90FBA7F76362774
4 changed files with 24 additions and 26 deletions

View file

@ -6,11 +6,11 @@ WORKDIR /var/lib/platypush
ARG DOCKER_CTX=1 ARG DOCKER_CTX=1
ENV DOCKER_CTX=1 ENV DOCKER_CTX=1
RUN apk update RUN apk update && \
RUN /install/platypush/install/scripts/alpine/install.sh /install/platypush/install/scripts/alpine/install.sh && \
RUN cd /install && pip install -U --no-input --no-cache-dir . cd /install && pip install -U --no-input --no-cache-dir . && \
RUN rm -rf /install rm -rf /install && \
RUN rm -rf /var/cache/apk apk cache clean
EXPOSE 8008 EXPOSE 8008

View file

@ -8,13 +8,13 @@ ENV DEBIAN_FRONTEND=noninteractive
ARG DOCKER_CTX=1 ARG DOCKER_CTX=1
ENV DOCKER_CTX=1 ENV DOCKER_CTX=1
RUN apt update RUN apt update && \
RUN /install/platypush/install/scripts/debian/install.sh /install/platypush/install/scripts/debian/install.sh && \
RUN cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages && \
RUN rm -rf /install rm -rf /install && \
RUN apt autoclean -y apt autoclean -y && \
RUN apt autoremove -y apt autoremove -y && \
RUN apt clean apt clean
EXPOSE 8008 EXPOSE 8008

View file

@ -7,13 +7,11 @@ ARG DOCKER_CTX=1
ENV DOCKER_CTX=1 ENV DOCKER_CTX=1
# Enable the RPM Fusion repository # Enable the RPM Fusion repository
RUN dnf install -y \ RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm && \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm /install/platypush/install/scripts/fedora/install.sh && \
cd /install && pip install -U --no-input --no-cache-dir . && \
RUN /install/platypush/install/scripts/fedora/install.sh rm -rf /install && \
RUN cd /install && pip install -U --no-input --no-cache-dir . dnf clean all -y
RUN rm -rf /install
RUN dnf clean all -y
EXPOSE 8008 EXPOSE 8008

View file

@ -8,13 +8,13 @@ ENV DEBIAN_FRONTEND=noninteractive
ARG DOCKER_CTX=1 ARG DOCKER_CTX=1
ENV DOCKER_CTX=1 ENV DOCKER_CTX=1
RUN apt update RUN apt update && \
RUN /install/platypush/install/scripts/debian/install.sh /install/platypush/install/scripts/debian/install.sh && \
RUN cd /install && pip install -U --no-input --no-cache-dir . cd /install && pip install -U --no-input --no-cache-dir . && \
RUN rm -rf /install rm -rf /install && \
RUN apt autoclean -y apt autoclean -y && \
RUN apt autoremove -y apt autoremove -y && \
RUN apt clean apt clean
EXPOSE 8008 EXPOSE 8008