mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
Move recipe Dockerfiles to separate files (#1953)
This commit is contained in:
12
docs/using/recipe_code/pip_install.dockerfile
Normal file
12
docs/using/recipe_code/pip_install.dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM jupyter/base-notebook
|
||||
|
||||
# Install in the default python3 environment
|
||||
RUN pip install --no-cache-dir 'flake8' && \
|
||||
fix-permissions "${CONDA_DIR}" && \
|
||||
fix-permissions "/home/${NB_USER}"
|
||||
|
||||
# Install from the requirements.txt file
|
||||
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
||||
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
|
||||
fix-permissions "${CONDA_DIR}" && \
|
||||
fix-permissions "/home/${NB_USER}"
|
Reference in New Issue
Block a user