forked from thehackerwithin/berkeley
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
28 lines (15 loc) · 860 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM jupyter/datascience-notebook
USER $NB_USER
# COPY environment.yml ./
# RUN conda env update --file=environment.yml
# RUN echo "install.packages(c('data.table', 'ggplot2'), repos = 'http://cran.us.r-project.org')" | R --no-save
RUN pip install --no-cache-dir bash_kernel keras mwapi wikipedia Theano pywikibot docopt getorg tweepy && \
python -m bash_kernel.install --sys-prefix
# add files to home directory and rename/reown
USER root
RUN apt-get update && apt-get install -y curl xz-utils tmux screen nano traceroute asciinema libmagic-dev
COPY ./code_examples/ /home/$NB_USER/code_examples/
# RUN mkdir /home/$NB_USER/code_examples && cd /home/$NB_USER/ && mv !(code_examples) code_examples
RUN usermod -G users $NB_USER && chown -R $NB_USER /home/$NB_USER/ && chgrp -R users /home/$NB_USER/
USER $NB_USER
RUN export USER=$NB_USER