Reduced Docker images to a single layer.
continuous-integration/drone/push Build is passing Details

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
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

View File

@ -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

View File

@ -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

View File

@ -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