Change-Id: I5b60040f9b0afbde05309ea93aeb92d879d24591
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
FROM ubuntu:18.04
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
- DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal=3.6.*
-
-RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install ca-certificates
+ DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+ python3-minimal=3.6.* \
+ ca-certificates
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
FROM ubuntu:20.04 as FINAL
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
- DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal=3.8.*
-
-RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+ DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+ python3-minimal=3.8.* \
ca-certificates
COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages