From 8f599de262ecc14f0c3b08befa69105811b5306a Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Fri, 15 Dec 2023 18:32:37 +0900 Subject: [PATCH] bug fix in dockerfiles (#2375) --- docker/Dockerfile.compile | 4 ++-- examples/cpu/inference/python/llm/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.compile b/docker/Dockerfile.compile index ff6835ea5..8989c56c1 100644 --- a/docker/Dockerfile.compile +++ b/docker/Dockerfile.compile @@ -9,7 +9,7 @@ ARG BASE_IMAGE=ubuntu:22.04 FROM ${BASE_IMAGE} AS base RUN if [ -f /etc/apt/apt.conf.d/proxy.conf ]; then rm /etc/apt/apt.conf.d/proxy.conf; fi && \ if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi && \ - if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi + if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi RUN apt update && \ apt full-upgrade -y && \ DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \ @@ -39,7 +39,7 @@ WORKDIR /home/ubuntu RUN curl -fsSL -v -o miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ bash miniconda.sh -b -p ./miniconda3 && \ rm miniconda.sh && \ - echo "\nsource ~/miniconda3/bin/activate" >> ./.bashrc + echo "source ~/miniconda3/bin/activate" >> ./.bashrc FROM base AS dev COPY --chown=ubuntu:ubuntu . ./intel-extension-for-pytorch diff --git a/examples/cpu/inference/python/llm/Dockerfile b/examples/cpu/inference/python/llm/Dockerfile index b9dda6b4f..73c4d1e5c 100644 --- a/examples/cpu/inference/python/llm/Dockerfile +++ b/examples/cpu/inference/python/llm/Dockerfile @@ -9,7 +9,7 @@ ARG BASE_IMAGE=ubuntu:22.04 FROM ${BASE_IMAGE} AS base RUN if [ -f /etc/apt/apt.conf.d/proxy.conf ]; then rm /etc/apt/apt.conf.d/proxy.conf; fi && \ if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi && \ - if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi + if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi RUN apt update && \ apt full-upgrade -y && \ DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \ @@ -39,7 +39,7 @@ WORKDIR /home/ubuntu RUN curl -fsSL -v -o miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ bash miniconda.sh -b -p ./miniconda3 && \ rm miniconda.sh && \ - echo "\nsource ~/miniconda3/bin/activate" >> ./.bashrc + echo "source ~/miniconda3/bin/activate" >> ./.bashrc # --build-arg COMPILE=ON to compile from source ARG COMPILE