forked from ddPn08/Radiata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a symlink to the missing library ddPn08#29
- Loading branch information
Showing
3 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
FROM node:18.14.0-alpine3.17 as frontend | ||
|
||
RUN apk update && apk add git && npm i -g pnpm | ||
FROM nvidia/cuda:11.8.0-runtime-ubuntu20.04 as main | ||
|
||
COPY . /Lsmith | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /Lsmith/frontend | ||
RUN apt update \ | ||
&& apt install software-properties-common -y \ | ||
&& add-apt-repository ppa:deadsnakes/ppa -y \ | ||
&& apt install curl -y | ||
|
||
RUN pnpm i && pnpm build | ||
RUN apt install tensorrt=8.5.3.1-1+cuda11.8 -y | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash | ||
|
||
FROM nvidia/cuda:11.8.0-runtime-ubuntu20.04 as main | ||
RUN apt install nodejs -y | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
&& chmod +x Miniconda3-latest-Linux-x86_64.sh \ | ||
&& bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /opt/conda \ | ||
&& rm Miniconda3-latest-Linux-x86_64.sh \ | ||
&& /opt/conda/bin/conda init bash | ||
|
||
RUN apt update && apt upgrade -y \ | ||
&& apt install software-properties-common -y \ | ||
&& add-apt-repository --yes ppa:deadsnakes/ppa | ||
RUN npm i -g pnpm | ||
|
||
RUN apt update && apt install curl python3.10 python3.10-venv git-core tensorrt=8.5.3.1-1+cuda11.8 -y | ||
RUN cd /usr/local/cuda-11.8/targets/x86_64-linux/lib/ \ | ||
&& ln -s libcublas.so.11 libcublas.so.12 \ | ||
&& ln -s libcublasLt.so.11 libcublasLt.so.12 | ||
|
||
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.10 | ||
ENV LD_LIBRARY_PATH /usr/local/cuda-11.8/targets/x86_64-linux/lib:$LD_LIBRARY_PATH | ||
|
||
COPY . /app | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=frontend /Lsmith/frontend/dist /app/dist | ||
|
||
ENTRYPOINT [ "/usr/bin/python3.10", "-u", "/app/launch.py" ] | ||
ENTRYPOINT [ "/opt/conda/bin/python", "-u", "/app/launch.py" ] |