Skip to content

Commit 8f599de

Browse files
authored
bug fix in dockerfiles (#2375)
1 parent 805ec39 commit 8f599de

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker/Dockerfile.compile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG BASE_IMAGE=ubuntu:22.04
99
FROM ${BASE_IMAGE} AS base
1010
RUN if [ -f /etc/apt/apt.conf.d/proxy.conf ]; then rm /etc/apt/apt.conf.d/proxy.conf; fi && \
1111
if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi && \
12-
if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi
12+
if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi
1313
RUN apt update && \
1414
apt full-upgrade -y && \
1515
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
@@ -39,7 +39,7 @@ WORKDIR /home/ubuntu
3939
RUN curl -fsSL -v -o miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
4040
bash miniconda.sh -b -p ./miniconda3 && \
4141
rm miniconda.sh && \
42-
echo "\nsource ~/miniconda3/bin/activate" >> ./.bashrc
42+
echo "source ~/miniconda3/bin/activate" >> ./.bashrc
4343

4444
FROM base AS dev
4545
COPY --chown=ubuntu:ubuntu . ./intel-extension-for-pytorch

examples/cpu/inference/python/llm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG BASE_IMAGE=ubuntu:22.04
99
FROM ${BASE_IMAGE} AS base
1010
RUN if [ -f /etc/apt/apt.conf.d/proxy.conf ]; then rm /etc/apt/apt.conf.d/proxy.conf; fi && \
1111
if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi && \
12-
if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::http::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi
12+
if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::Proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf.d/proxy.conf; fi
1313
RUN apt update && \
1414
apt full-upgrade -y && \
1515
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
@@ -39,7 +39,7 @@ WORKDIR /home/ubuntu
3939
RUN curl -fsSL -v -o miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
4040
bash miniconda.sh -b -p ./miniconda3 && \
4141
rm miniconda.sh && \
42-
echo "\nsource ~/miniconda3/bin/activate" >> ./.bashrc
42+
echo "source ~/miniconda3/bin/activate" >> ./.bashrc
4343

4444
# --build-arg COMPILE=ON to compile from source
4545
ARG COMPILE

0 commit comments

Comments
 (0)