Browse Source

Improve docker layering

Do apt clean and /var/lib/rabbitmq state purge at
install stage

Change-Id: Ibdb3d30f2d7e92a7524778a719b5c9603072aaad
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Bogdan Dobrelya 2 years ago
parent
commit
f4c0d3fbdd
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      docker/rabbitmq/Dockerfile.j2

+ 2
- 3
docker/rabbitmq/Dockerfile.j2 View File

@@ -3,9 +3,8 @@ MAINTAINER {{ maintainer }}
3 3
 
4 4
 RUN apt-get install -y --no-install-recommends \
5 5
     rabbitmq-server \
6
-    && apt-get clean
7
-
8
-RUN rm -rf /var/lib/rabbitmq/*
6
+    && apt-get clean \
7
+    && rm -rf /var/lib/rabbitmq/*
9 8
 
10 9
 COPY rabbitmq_sudoers /etc/sudoers.d/rabbitmq_sudoers
11 10
 RUN chmod 750 /etc/sudoers.d \

Loading…
Cancel
Save