mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
29 lines
729 B
Docker
29 lines
729 B
Docker
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
# https://hub.docker.com/r/jupyter/base-notebook/tags
|
|
ARG OWNER=jupyter
|
|
ARG BASE_CONTAINER=$OWNER/base-notebook:b418b67c225b
|
|
FROM $BASE_CONTAINER
|
|
|
|
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
|
|
|
# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
|
|
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
ENV TAG="b418b67c225b"
|
|
|
|
WORKDIR "${HOME}"
|
|
COPY binder/README.ipynb .
|
|
|
|
# Fix permissions on README.ipynb as root
|
|
USER root
|
|
|
|
RUN fix-permissions README.ipynb
|
|
|
|
# Switch back to jovyan to avoid accidental container runs as root
|
|
USER ${NB_UID}
|
|
|
|
WORKDIR "${HOME}"
|