-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 920 Bytes
/
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
FROM liuderchi/jupyterlab-ijavascript:py3-py2-node10
WORKDIR /data
ENV HOME=/root
RUN set -ex && \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk add --no-cache bash git openssh && \
npm config set prefix $HOME && \
npm install -g itypescript --registry=https://registry.npm.taobao.org --unsafe-perm && \
~/bin/its --install=local && \
git clone https://github.com/awamwang/code-tell-you-javascript.git && \
/bin/sh -c pip install --upgrade pip && \
/bin/sh -c python3 -m pip install jupyterlab && \
jupyter lab --generate-config && \
jupyter labextension install @jupyterlab/git
COPY docker/.jupyter/user-setting/ $HOME/.jupyter/user-setting/
ENV SERVER_PORT=8888
EXPOSE $SERVER_PORT
VOLUME [ "${HOME}/.jupyter/", "/data/" ]
ENTRYPOINT ["/bin/sh", "-c", "jupyter lab --ip=* \
--port=$SERVER_PORT \
--no-browser \
--notebook-dir=/data/code-tell-you-javascript \
--allow-root"]