Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile to be non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Apr 5, 2019
1 parent 50c15fb commit 87a1cee
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions containers/python-3-jupyter-pyspark/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,25 @@ FROM jupyter/pyspark-notebook

USER root

RUN pip install pylint
# Install git
RUN apt-get update && apt-get -y install git

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

# Copy jupyter_notebook_config.py with token that matches settings
COPY jupyter_notebook_config.py /home/jovyan/.jupyter/jupyter_notebook_config.py

# Copy default endpoint specific user settings overrides into container to specify Python path, token
COPY settings.vscode.json /home/jovyan/.vscode-remote/data/User/settings.json

# Install git
RUN apt-get update && apt-get -y install git
RUN chown jovyan -R /home/jovyan

USER jovyan

RUN pip install pylint



# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit 87a1cee

Please sign in to comment.