Resolved Bug 1728 - Dockerfile not working when local building 87/11487/1
authorAtul Agarwal <Atul.Agarwal@Altran.com>
Tue, 7 Dec 2021 12:51:16 +0000 (12:51 +0000)
committerpalsus <subhankar.pal@aricent.com>
Thu, 9 Dec 2021 10:20:23 +0000 (11:20 +0100)
Change-Id: Idc1f84af9a21887feb52b38291519c457221770d
Signed-off-by: Atul Agarwal <Atul.Agarwal@Altran.com>
(cherry picked from commit bbfbce091795eb391c33984ada19ce0b7d2da616)

docker/Dockerfile

index 892eff1..93a4eeb 100644 (file)
@@ -25,12 +25,14 @@ FROM ubuntu:20.04
 LABEL authors="Benjamín Díaz, Fabián Bravo"
 
 RUN apt-get --yes update \
- && apt-get --yes install python3=3.8.2-0ubuntu2 python3-pip=20.0.2-5ubuntu1.1 libmysqlclient-dev=8.0.23-0ubuntu0.20.04.1 git mysql-client=8.0.23-0ubuntu0.20.04.1 \
- && pip3 install pip==21.0.1
+ && apt-get --yes install python3=3.8.* python3-pip=20.0.* libmysqlclient-dev=8.0.* git mysql-client=8.0.* \
+ && pip3 install pip==21.3.1
 
 COPY requirements.txt /policy_module/requirements.txt
+COPY requirements-dev.txt /policy_module/requirements-dev.txt
 
 RUN pip3 install -r /policy_module/requirements.txt
+RUN pip3 install -r /policy_module/requirements-dev.txt
 
 COPY . /policy_module
 
@@ -50,4 +52,4 @@ ENV OSMPOL_GLOBAL_LOGLEVEL INFO
 HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=30s \
   CMD osm-pol-healthcheck || exit 1
 
-CMD /bin/bash /policy_module/docker/scripts/start.sh
\ No newline at end of file
+CMD /bin/bash /policy_module/docker/scripts/start.sh