Skip to content

Instantly share code, notes, and snippets.

@rwcitek
Last active August 10, 2023 03:48
Show Gist options
  • Select an option

  • Save rwcitek/22fb937d9ddcb4b2f0b009973d9b582f to your computer and use it in GitHub Desktop.

Select an option

Save rwcitek/22fb937d9ddcb4b2f0b009973d9b582f to your computer and use it in GitHub Desktop.
Dockerfile for nbviewer

Dockerfile for nbviewer

cat <<'eof' > /tmp/Dockerfile.nbviewer
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get install -y \
      curl \
      file \
      jq \
      less \
      libcurl4-openssl-dev \
      libssl-dev \
      python3-pip \
      tree \
      unzip \
      vim \
      zip \
      ;
RUN python3 -m pip install --upgrade pip
RUN pip install --upgrade setuptools wheel
RUN pip install nbconvert nbviewer
COPY Dockerfile.nbviewer /Dockerfile
eof

docker image build --tag nbviewer -f /tmp/Dockerfile.nbviewer /tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment