Skip to content

Commit

Permalink
verify
Browse files Browse the repository at this point in the history
Signed-off-by: Jiafu Zhang <[email protected]>
  • Loading branch information
jiafuzha committed Dec 19, 2023
1 parent c7a6208 commit f28c836
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/docker/Dockerfile.bigdl-cpu
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# syntax=docker/dockerfile:1
FROM ubuntu:22.04

ENV LANG C.UTF-8

WORKDIR /root/llm-on-ray

RUN apt-get update -y \
RUN --mount=type=cache,target=/var/cache/apt apt-get update -y \
&& apt-get install -y build-essential cmake wget curl git vim htop ssh net-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -17,7 +18,7 @@ ENV PATH $CONDA_DIR/bin:$PATH
# setup env
SHELL ["/bin/bash", "--login", "-c"]

RUN conda init bash && \
RUN --mount=type=cache,target=/opt/conda/pkgs conda init bash && \
unset -f conda && \
export PATH=$CONDA_DIR/bin/:${PATH} && \
conda config --add channels intel && \
Expand All @@ -27,7 +28,7 @@ COPY ./pyproject.toml .

RUN mkdir ./finetune && mkdir ./inference

RUN pip install -e .[bigdl-cpu] -f https://developer.intel.com/ipex-whl-stable-cpu \
RUN --mount=type=cache,target=/root/.cache/pip pip install -e .[bigdl-cpu] -f https://developer.intel.com/ipex-whl-stable-cpu \
-f https://download.pytorch.org/whl/torch_stable.html

# Used to invalidate docker build cache with --build-arg CACHEBUST=$(date +%s)
Expand Down

0 comments on commit f28c836

Please sign in to comment.