Bug 1970 fixed 29/11829/2
authorPedro Escaleira <escaleira@av.it.pt>
Sun, 3 Apr 2022 17:31:50 +0000 (18:31 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 20 Jun 2022 16:38:33 +0000 (18:38 +0200)
Now the Dockerfile.local uses Ubuntu 20.04;
The paths in the format `/[...]/python<version>/[...]` where replaced
with the new Python version (3.8 instead of 3.6)

Change-Id: Iccccecb2bd4f4d8156357dba582b0460987b060f
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Dockerfile.local

index 2816d0a..04f2d2e 100644 (file)
@@ -16,7 +16,7 @@
 
 ########################################################################
 
-FROM ubuntu:18.04 as INSTALL
+FROM ubuntu:20.04 as INSTALL
 
 WORKDIR /build
 
@@ -46,13 +46,13 @@ RUN python3 -m build /build && \
     python3 -m pip install /build/dist/*.whl
 
 
-FROM ubuntu:18.04 as FINAL
+FROM ubuntu:20.04 as FINAL
 
 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
     DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal
 
 COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
-COPY --from=INSTALL /usr/local/lib/python3.6/dist-packages  /usr/local/lib/python3.6/dist-packages
+COPY --from=INSTALL /usr/local/lib/python3.8/dist-packages  /usr/local/lib/python3.8/dist-packages
 
 RUN mkdir -p /app/storage/kafka && mkdir -p /app/log
 
@@ -60,9 +60,9 @@ WORKDIR /app/osm_nbi
 
 EXPOSE 9999
 
-RUN cp -R /usr/local/lib/python3.6/dist-packages/osm_nbi/html_public /app/osm_nbi/html_public
-RUN cp /usr/local/lib/python3.6/dist-packages/osm_nbi/nbi.cfg /app/osm_nbi/
-RUN cp -R /usr/local/lib/python3.6/dist-packages/osm_nbi/http /app/osm_nbi/
+RUN cp -R /usr/local/lib/python3.8/dist-packages/osm_nbi/html_public /app/osm_nbi/html_public
+RUN cp /usr/local/lib/python3.8/dist-packages/osm_nbi/nbi.cfg /app/osm_nbi/
+RUN cp -R /usr/local/lib/python3.8/dist-packages/osm_nbi/http /app/osm_nbi/
 
 # Used for local storage
 VOLUME /app/storage