forked from kvcache-ai/Mooncake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Base Image from Alibaba Cloud AC2
FROM ac2-registry.cn-hangzhou.cr.aliyuncs.com/ac2/pytorch-ubuntu:2.3.0-cuda12.1.1-ubuntu22.04
WORKDIR /app
COPY . .
ENV GOROOT=/usr/local/go
ENV PATH=$GOROOT/bin:$PATH
RUN apt update \
&& apt install -y unzip wget cmake git sudo \
&& pip install pybind11
# Execute installation in the container
RUN bash dependencies.sh \
&& apt autoremove -y \
&& apt clean -y \
&& rm -rf /tmp/* /var/tmp/* \
&& find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete \
&& find /var/cache -type f -delete
RUN rm -rf build || true \
&& mkdir build && cd build \
&& cmake .. -DSTORE_USE_ETCD=ON && make -j$(nproc) && make install