forked from platypush/platypush
Reduced Docker images to a single layer.
This commit is contained in:
parent
bf1b8aaf70
commit
3598253558
4 changed files with 24 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue