-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (50 loc) · 1.42 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (50 loc) · 1.42 KB
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
56
57
58
59
60
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
# Group 1 must be synced with README
# Group 2 must be synced with requirements for examples
# Group 3 must be synced with rest of Dockerfile
# Group 4 is optional
# Group 5 must be synced with requirements for tutorials
RUN apt-get update && apt-get install -y \
build-essential \
libgomp1 \
libmpich-dev \
mpich \
python3-dev \
python3-pip \
python3-venv \
\
python3-tk\
ffmpeg\
curl \
unzip \
wget \
\
screen \
\
less \
man \
vim \
\
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
COPY dist/brainiak-* /mnt
WORKDIR /mnt
RUN set -e \
&& tar -xf brainiak-*.tar.gz \
&& mv brainiak-*.tar.gz sdist.tar.gz \
&& mv brainiak-* brainiak
WORKDIR /mnt/brainiak
COPY tutorials/tutorials tutorials
RUN set -e \
&& python3 -m pip install --user --break-system-packages -U pip \
&& python3 -m pip install --user --break-system-packages -U . \
&& python3 -m pip install --user --break-system-packages -U -r tutorials/requirements.txt \
&& for example in examples/*/requirements.txt; \
do python3 -m pip install --user --break-system-packages -U -r $example ; done \
&& rm -rf ~/.cache/pip
RUN echo PATH=\"\$HOME/.local/bin:\$PATH\" >> $HOME/.profile \
&& echo "shell -bash" >> ~/.screenrc
EXPOSE 8899
ENTRYPOINT ["/bin/bash", "-l"]
CMD ["tutorials/run_jupyter_docker.sh"]