Skip to content

Commit

Permalink
Merge pull request #1146 from romainx/fix_examples
Browse files Browse the repository at this point in the history
Resolve Docker lint (hadolint) errors
  • Loading branch information
romainx authored Aug 16, 2020
2 parents 9b87b16 + ba4b59d commit 7d0e50e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ repos:
name: Hadolint linter
description: Runs Hadolint to check for Dockerfile best practices
language: system
# Exclude ppc64le Dockerfile since cannot check their build easily
exclude: ppc64
types:
- dockerfile
entry: hadolint
11 changes: 6 additions & 5 deletions examples/docker-compose/notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
# Pick your favorite docker-stacks image
FROM jupyter/minimal-notebook:55d5ca6be183

USER jovyan

# Add permanent pip/conda installs, data files, other user libs here
# e.g., RUN pip install jupyter_dashboards

USER root

# Add permanent apt-get installs and other root commands here
# e.g., RUN apt-get install npm nodejs

USER $NB_UID

# Switch back to jovyan to avoid accidental container runs as root
# Add permanent pip/conda installs, data files, other user libs here
# e.g., RUN pip install jupyter_dashboards
11 changes: 6 additions & 5 deletions examples/make-deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
# Pick your favorite docker-stacks image
FROM jupyter/minimal-notebook:2d125a7161b5

USER jovyan

# Add permanent pip/conda installs, data files, other user libs here
# e.g., RUN pip install jupyter_dashboards

USER root

# Add permanent apt-get installs and other root commands here
# e.g., RUN apt-get install npm nodejs

USER $NB_UID

# Switch back to jovyan to avoid accidental container runs as root
# Add permanent pip/conda installs, data files, other user libs here
# e.g., RUN pip install jupyter_dashboards

0 comments on commit 7d0e50e

Please sign in to comment.