diff --git a/platypush/install/docker/alpine.Dockerfile b/platypush/install/docker/alpine.Dockerfile index 6df50a132b..30aa9d0130 100644 --- a/platypush/install/docker/alpine.Dockerfile +++ b/platypush/install/docker/alpine.Dockerfile @@ -6,11 +6,11 @@ WORKDIR /var/lib/platypush ARG DOCKER_CTX=1 ENV DOCKER_CTX=1 -RUN apk update -RUN /install/platypush/install/scripts/alpine/install.sh -RUN cd /install && pip install -U --no-input --no-cache-dir . -RUN rm -rf /install -RUN rm -rf /var/cache/apk +RUN apk update && \ + /install/platypush/install/scripts/alpine/install.sh && \ + cd /install && pip install -U --no-input --no-cache-dir . && \ + rm -rf /install && \ + apk cache clean EXPOSE 8008 diff --git a/platypush/install/docker/debian.Dockerfile b/platypush/install/docker/debian.Dockerfile index 871ec4ab13..80053c7715 100644 --- a/platypush/install/docker/debian.Dockerfile +++ b/platypush/install/docker/debian.Dockerfile @@ -8,13 +8,13 @@ ENV DEBIAN_FRONTEND=noninteractive ARG DOCKER_CTX=1 ENV DOCKER_CTX=1 -RUN apt update -RUN /install/platypush/install/scripts/debian/install.sh -RUN cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages -RUN rm -rf /install -RUN apt autoclean -y -RUN apt autoremove -y -RUN apt clean +RUN apt update && \ + /install/platypush/install/scripts/debian/install.sh && \ + cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages && \ + rm -rf /install && \ + apt autoclean -y && \ + apt autoremove -y && \ + apt clean EXPOSE 8008 diff --git a/platypush/install/docker/fedora.Dockerfile b/platypush/install/docker/fedora.Dockerfile index 98be6fb024..fd3b147cad 100644 --- a/platypush/install/docker/fedora.Dockerfile +++ b/platypush/install/docker/fedora.Dockerfile @@ -7,13 +7,11 @@ ARG DOCKER_CTX=1 ENV DOCKER_CTX=1 # Enable the RPM Fusion repository -RUN dnf install -y \ - https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm - -RUN /install/platypush/install/scripts/fedora/install.sh -RUN cd /install && pip install -U --no-input --no-cache-dir . -RUN rm -rf /install -RUN dnf clean all -y +RUN dnf install -y 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 . && \ + rm -rf /install && \ + dnf clean all -y EXPOSE 8008 diff --git a/platypush/install/docker/ubuntu.Dockerfile b/platypush/install/docker/ubuntu.Dockerfile index cacd7b3e7d..643f94dc35 100644 --- a/platypush/install/docker/ubuntu.Dockerfile +++ b/platypush/install/docker/ubuntu.Dockerfile @@ -8,13 +8,13 @@ ENV DEBIAN_FRONTEND=noninteractive ARG DOCKER_CTX=1 ENV DOCKER_CTX=1 -RUN apt update -RUN /install/platypush/install/scripts/debian/install.sh -RUN cd /install && pip install -U --no-input --no-cache-dir . -RUN rm -rf /install -RUN apt autoclean -y -RUN apt autoremove -y -RUN apt clean +RUN apt update && \ + /install/platypush/install/scripts/debian/install.sh && \ + cd /install && pip install -U --no-input --no-cache-dir . && \ + rm -rf /install && \ + apt autoclean -y && \ + apt autoremove -y && \ + apt clean EXPOSE 8008