diff --git a/db-migration-worker/Dockerfile b/db-migration-worker/Dockerfile index 8a7f8d758..865a4c330 100644 --- a/db-migration-worker/Dockerfile +++ b/db-migration-worker/Dockerfile @@ -1,11 +1,11 @@ FROM mongo:4 -RUN apt-get update -RUN apt-get -y install --no-install-recommends wget apt-transport-https +RUN apt-get update && apt-get -y install --no-install-recommends wget apt-transport-https \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* RUN wget -O - https://debian.neo4j.org/neotechnology.gpg.key | apt-key add - RUN echo 'deb https://debian.neo4j.org/repo stable/' | tee /etc/apt/sources.list.d/neo4j.list -RUN apt-get update -RUN apt-get -y install --no-install-recommends openjdk-8-jre openssh-client neo4j rsync \ +RUN apt-get update && apt-get -y install --no-install-recommends openjdk-8-jre openssh-client neo4j rsync \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* COPY migration ./migration