-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.NoTeX
More file actions
42 lines (34 loc) · 1.18 KB
/
Dockerfile.NoTeX
File metadata and controls
42 lines (34 loc) · 1.18 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
FROM ubuntu:jammy
RUN echo "Installing dependencies..." && \
apt update && \
apt install -y \
python3 \
python3-pip \
pandoc \
wget \
sudo \
gnupg \
ca-certificates \
procps \
libxss1 && \
rm -rf /var/lib/apt/lists/*
# Only need the dependencies, but it is easier to install the whole thing
RUN echo "Installing Chrome..." && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt update && \
apt install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash -G sudo developer && \
echo "developer:developer" | chpasswd
USER developer
WORKDIR /home/developer
RUN pip3 --no-cache-dir install --upgrade pip && \
pip3 --no-cache-dir install \
jupyter \
nbconvert[webpdf] && \
mkdir -p ~/.jupyter && \
echo 'c.WebPDFExporter.disable_sandbox = True' > ~/.jupyter/jupyter_nbconvert_config.py
ENV PATH="/home/developer/.local/bin:${PATH}"
RUN pyppeteer-install
RUN mkdir develop