Browse Source

Less data in layers.

Herby Vojčík 7 months ago
parent
commit
1292f5cd37
2 changed files with 6 additions and 14 deletions
  1. 3 7
      base_32/Dockerfile
  2. 3 7
      base_64/Dockerfile

+ 3 - 7
base_32/Dockerfile

@@ -1,8 +1,7 @@
 FROM ubuntu:16.04
 
 RUN dpkg --add-architecture i386
-RUN apt-get update -q
-RUN apt-get -qy --no-install-recommends install \
+RUN apt-get update -q && apt-get -qy --no-install-recommends install \
         ca-certificates \
         libx11-6:i386 \
         libgl1-mesa-glx:i386 \
@@ -12,10 +11,7 @@ RUN apt-get -qy --no-install-recommends install \
         libcurl3:i386 \
         libsqlite3-0:i386 \
         curl \
-        unzip
-
-RUN update-ca-certificates
-
-RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+        unzip \
+        && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 RUN echo "Pharo 32bit prerequisities installed."

+ 3 - 7
base_64/Dockerfile

@@ -1,15 +1,11 @@
 FROM ubuntu:16.04
 
-RUN apt-get update -q
-RUN apt-get -qy --no-install-recommends install \
+RUN apt-get update -q && apt-get -qy --no-install-recommends install \
         ca-certificates \
         libfreetype6 \
         libcurl3 \
         curl \
-        unzip
-
-RUN update-ca-certificates
-
-RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+        unzip \
+        && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 RUN echo  "Pharo 64bit prerequisities installed."