-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (46 loc) · 1.35 KB
/
Dockerfile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM python:3.10-bullseye
WORKDIR /home/sc_kernel
# compile/install supercollider w/o qt
RUN apt-get update && \
apt-get install --yes \
build-essential \
cmake \
libjack-jackd2-dev \
libsndfile1-dev \
libfftw3-dev \
libxt-dev \
libavahi-client-dev \
libudev-dev && \
git clone --recurse-submodules --depth=1 --branch 3.12 https://github.com/SuperCollider/SuperCollider.git && \
cd SuperCollider && mkdir -p build && cd build && \
cmake \
-DBUILD_TESTING=OFF \
-DENABLE_TESTSUITE=OFF \
-DNO_X11=OFF \
-SC_DOC_RENDER=ON \
-DSC_ABLETON_LINK=OFF \
-DSC_ED=OFF \
-DSC_EL=no \
-DSC_IDE=OFF \
-DSC_USE_QTWEBENGINE=OFF \
-DSC_VIM=OFF \
-DSUPERNOVA=OFF \
-DSC_QT=OFF \
-DCMAKE_INSTALL_PREFIX=/usr/local \
.. && \
make && \
make install && \
cd .. && \
rm -rf SuperCollider && \
rm -rf /var/lib/apt/lists/*
# build docs
RUN echo "SCDoc.renderAll;0.exit">renderDocs.scd && \
sclang renderDocs.scd
ADD . .
RUN pip install -e .
RUN python setup.py install
EXPOSE 8888
# we compile w/o qt - this makes plotting not possible
# and therefore we need a flag to not load the function
ENV NO_QT=true
CMD [ "jupyter", "lab", "--allow-root", "--ip=0.0.0.0", "--no-browser" ]