diff --git a/Docker/Dockerfile b/Docker/Dockerfile
index 932517cb46057bf23b295860f7ec34abfad65cf7..6448d743a08faf3a82acd651bb326c35ea55fd5a 100644
--- a/Docker/Dockerfile
+++ b/Docker/Dockerfile
@@ -2,21 +2,7 @@
 FROM ubuntu:20.04
 
 # Install dependencies
-RUN apt-get update && apt-get install -y \
-    software-properties-common
-
-RUN add-apt-repository universe
-
-RUN add-apt-repository ppa:deadsnakes/ppa
-
-RUN apt-get update && apt-get install -y \
-    python3.6 \
-    python3-pip \
-    openjdk-8-jdk \
-    wget \
-    git
-
-RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
+RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository universe && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.6 python3-pip openjdk-8-jdk wget git && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
 
 USER root
 
@@ -25,24 +11,19 @@ WORKDIR /opt/application/
 # Open container ports for external access
 EXPOSE 8050-8051 27017
 
-#COPY . .
-
 RUN git clone https://gitlab.univ-lille.fr/bioinsp/VS2N.git .
 
 # install requirements
-RUN pip install -r requirements.txt
+RUN pip install -r requirements.txt && cp default.config.py config.py
 
-RUN cp default.config.py config.py
 # install mongoDB
 RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
 RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
 
-RUN apt-get update && apt-get install -y mongodb-org && rm -rf /var/lib/apt/lists/*
-
-RUN mkdir /home/data && mkdir /home/data/db && touch /home/data/db/log
+RUN apt-get update && apt-get install -y mongodb-org && rm -rf /var/lib/apt/lists/* && mkdir /home/data && mkdir /home/data/db && touch /home/data/db/log
 
 # start MongoDB & VS2N
 ADD start.sh /
 RUN chmod +x /start.sh
 
-CMD ["/start.sh"]
\ No newline at end of file
+CMD ["/start.sh"]