Skip to content

Commit

Permalink
bug fix in dockerfiles (#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingxu10 authored Dec 15, 2023
1 parent 805ec39 commit 8f599de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.compile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/cpu/inference/python/llm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8f599de

Please sign in to comment.