Skip to content

Commit 35dc029

Browse files
committed
bonsai - add a dockerfile
1 parent 2f72346 commit 35dc029

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/bonsai/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Build Bonsai .zip.
2+
# Usage:
3+
# # While in `bonsai` folder.
4+
# docker build -t bonsai-dist .
5+
# # Output zip file will be in `dist` folder.
6+
# # See possible values for variables in `Makefile`'s `dist` target description.
7+
# docker run --rm -v "$PWD/../../:/work" -w /work -e PLATFORM=win -e PYVERSION=py313 bonsai-dist
8+
9+
FROM ubuntu:24.04
10+
RUN apt-get update
11+
RUN apt-get install -y make git wget unzip zip
12+
13+
# Python
14+
RUN apt-get install -y software-properties-common
15+
RUN add-apt-repository ppa:deadsnakes/ppa
16+
RUN apt-get update
17+
RUN apt-get install -y python3.11 python3.11-venv
18+
19+
RUN apt-get install -y npm
20+
21+
WORKDIR /work
22+
CMD cd src/bonsai && make dist PLATFORM=$PLATFORM PYVERSION=$PYVERSION

0 commit comments

Comments
 (0)