forked from ecervera/jupyter-stata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (25 loc) · 1.05 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
FROM dataeditors/stata18:2023-12-20
USER root
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN pip install stata_kernel
RUN python3 -m stata_kernel.install
RUN pip install jupyterlab
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - \
&& apt-get install -y nodejs
RUN pip install jupyterlab-stata-highlight2
RUN pip install notebook
COPY stata_session.py /usr/local/lib/python3.10/dist-packages/stata_kernel/stata_session.py
USER statauser:stata
ENTRYPOINT ["jupyter", "lab", "--no-browser", "--ip", "0.0.0.0"]