-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (45 loc) · 1.63 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
56
57
58
59
60
# see https://github.com/sciserver/sciserver-compute-images/tree/master/essentials/3.0/sciserver-jupyter
FROM ubuntu:22.04
RUN useradd -m idies \
&& mkdir /home/idies/workspace \
&& chown idies:idies /home/idies/workspace
ARG DEBIAN_FRONTEND=noninteractive
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime \
&& apt-get update \
&& apt-get install -y \
build-essential \
cmake \
sudo \
wget \
curl \
git \
vim \
htop \
locales \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen "en_US.UTF-8" \
&& update-locale "LANG=en_US.UTF-8"
# I do not need texlive
# RUN apt-get update \
# && apt-get install -y texlive-full \
# && rm -rf /var/lib/apt/lists/*
EXPOSE 8888
# this is needed for jupyter lab (for bokeh proxied connections)
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs yarn \
&& rm -rf /var/lib/apt/lists/*
USER idies
WORKDIR /home/idies
RUN curl -L "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" -o miniforge3.sh \
&& bash miniforge3.sh -b \
&& rm -f miniforge3.sh
ENV PATH /home/idies/miniforge3/bin:$PATH
COPY requirements.txt requirements.txt
COPY requirements.conda.txt requirements.conda.txt
RUN mamba install -y -y -c bokeh -c conda-forge --file requirements.conda.txt --file requirements.txt
# need to proxy bokeh connections
RUN jupyter serverextension enable --py jupyter_server_proxy
RUN jupyter labextension install @jupyterlab/server-proxy
ENV SHELL /bin/bash