From 3e628fa48c83f2970005df784c76039594166127 Mon Sep 17 00:00:00 2001 From: Atul Agarwal Date: Tue, 7 Dec 2021 12:51:16 +0000 Subject: [PATCH] Resolved Bug 1728 - Dockerfile not working when local building Change-Id: Idc1f84af9a21887feb52b38291519c457221770d Signed-off-by: Atul Agarwal (cherry picked from commit bbfbce091795eb391c33984ada19ce0b7d2da616) --- docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 892eff1..93a4eeb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 -- 2.25.1