File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:latest
2+
3+ COPY . ./app
4+ WORKDIR /app
5+
6+ RUN apt update; apt install -y wget lsb-release software-properties-common gnupg curl ca-certificates
7+
8+ RUN wget -qO- https://apt.llvm.org/llvm.sh | bash -s -- 21
9+ RUN apt install -y libmlir-21-dev mlir-21-tools
10+
11+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
12+ RUN apt install -y nodejs
13+ RUN npm install
14+
15+ RUN add-apt-repository -y ppa:deadsnakes/ppa; apt install -y python3-pip python3.11-venv
16+
17+ RUN python3.11 -m venv mlir_venv
18+
19+ RUN mlir_venv/bin/pip install --upgrade pip
20+ RUN mlir_venv/bin/pip install --pre torch-mlir torchvision \
21+ --extra-index-url https://download.pytorch.org/whl/nightly/cpu \
22+ -f https://github.com/llvm/torch-mlir-release/releases/expanded_assets/dev-wheels
23+
24+ RUN mlir_venv/bin/pip install fastapi uvicorn pytest httpx
25+
26+ EXPOSE 3000 8000
27+
28+ CMD ["npm" , "run" , "start:all" ]
Original file line number Diff line number Diff line change @@ -78,6 +78,19 @@ npm run start:all
7878
7979Then open http://localhost:3000/ in your browser and enjoy!
8080
81+ ### Run in a docker
82+
83+ Build image with:
84+
85+ ``` bash
86+ docker build -t pytorch_explorer .
87+ ```
88+
89+ Run it:
90+ ``` bash
91+ docker run -p 3000:3000 -p 8000:8000 pytorch_explorer
92+ ```
93+
8194### Run the tests
8295
8396With the application (or just backend) started, run:
You can’t perform that action at this time.
0 commit comments