Sign inSign up

luvx/jupyter

By luvx

Updated about 1 month ago

Image
0

4.2K

luvx/jupyter repository overview

wget https://raw.githubusercontent.com/docker-library/golang/master/1.22/alpine3.19/Dockerfile

FROM python:3.12-alpine3.19

RUN set -x \
    && apk update \
    && apk --no-cache --arch=x86_64 add \
    ca-certificates g++ gcc git libffi-dev pkgconfig mercurial mesa-dev musl-dev su-exec zeromq-dev

RUN pip3 install jupyter

RUN env GO111MODULE=on go install github.com/gopherdata/[email protected] \
    && mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
    && cp /go/pkg/mod/github.com/gopherdata/[email protected]/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
    && cd ~/.local/share/jupyter/kernels/gophernotes \
    && chmod +w ./kernel.json \
    && sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json

EXPOSE 8888
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]

RUN mkdir -p $HOME/code
WORKDIR /root

services:
  jupyter:
    platform: linux/amd64
    image: luvx/jupyter:latest
    container_name: jupyter
    ports:
      - 8888:8888
    volumes:
      - $HOME/docker/jupyter:/root/code

docker buildx build -t luvx/jupyter:latest --platform linux/amd64,linux/arm64 . --push

Tag summary

Content type

Image

Digest

sha256:70d506377

Size

641.4 MB

Last updated

about 1 month ago

docker pull luvx/jupyter