-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 924 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
28
29
30
31
32
33
# use the official java 8 (OpenJDK) as our base image
FROM java:8
MAINTAINER davidrpugh <[email protected]>
RUN apt-get update -y && \
apt-get install -y bzip2 wget && \
apt-get clean
# Run docker image with non-root user as security precaution
RUN useradd --create-home --shell /bin/bash main
USER main
ENV HOME /home/main
ENV SHELL /bin/bash
ENV USER main
WORKDIR $HOME
USER root
RUN chown -R main:main /home/main
# Install minconda3 package manager...
USER main
RUN echo "Downloading Miniconda..." && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
$SHELL Miniconda3-latest-Linux-x86_64.sh -b && \
rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH $HOME/miniconda3/bin:$PATH
# Install various Python dependencies...
RUN conda install --yes jupyter
RUN conda install --yes numpy pandas scipy matplotlib seaborn bokeh
RUN conda clean --yes --tarballs