From: Atul Agarwal Date: Tue, 7 Dec 2021 12:51:16 +0000 (+0000) Subject: Resolved Bug 1728 - Dockerfile not working when local building X-Git-Tag: v12.0.0rc1~8 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FPOL.git;a=commitdiff_plain;h=bbfbce091795eb391c33984ada19ce0b7d2da616 Resolved Bug 1728 - Dockerfile not working when local building Change-Id: Idc1f84af9a21887feb52b38291519c457221770d Signed-off-by: Atul Agarwal --- 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