forked from gpustack/gpustack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.musa
35 lines (26 loc) · 865 Bytes
/
Dockerfile.musa
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
26
27
28
29
30
31
32
33
34
35
ARG UBUNTU_VERSION=22.04
ARG MUSA_VERSION=rc3.1.0
ARG BASE_MUSA_DEV_CONTAINER=mthreads/musa:${MUSA_VERSION}-devel-ubuntu${UBUNTU_VERSION}
ARG BASE_MUSA_RUN_CONTAINER=mthreads/musa:${MUSA_VERSION}-runtime-ubuntu${UBUNTU_VERSION}
FROM ${BASE_MUSA_DEV_CONTAINER} AS build
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git \
curl
COPY . /workspace/gpustack
RUN cd /workspace/gpustack && make build
FROM ${BASE_MUSA_RUN_CONTAINER} AS runtime
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
wget \
tzdata \
iproute2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=build /workspace/gpustack/dist/*.whl /dist/
RUN pip install /dist/*.whl && \
pip cache purge && \
rm -rf /dist
RUN gpustack download-tools
ENTRYPOINT [ "gpustack", "start" ]