-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (45 loc) · 1.27 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ANACONDA
#FROM continuumio/miniconda3
#PIP
FROM python:3.7-slim
# install the notebook package
RUN pip install --no-cache --upgrade pip && \
pip install --no-cache notebook
USER root
#ANACONDA
#RUN conda create -n jetset-env python=3.7
#ENV PATH /opt/conda/envs/jetset-env/bin:$PATH
#RUN echo "source activate jetset-env" > ~/.bashrc
ADD requirements_docker.txt /requirements_docker.txt
#ANACONDA
#RUN conda create -n jetset-env python=3.7 ipython notebook
#RUN conda install --yes -c astropy --file requirements_docker.txt
#PIPI
RUN pip install -r requirements_docker.txt
RUN apt-get update -y
RUN apt-get install -y swig
RUN apt-get install -y git
RUN apt-get install -y gcc
RUN apt-get install -y wget
RUN wget https://github.com/andreatramacere/jetset/archive/1.2.0rc3.tar.gz
RUN tar zxfv 1.2.0rc3.tar.gz
WORKDIR jetset-1.2.0rc3
RUN python setup.py install
WORKDIR /
# create user with a home directory
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
ADD *.ipynb $HOME/notebooks/
ADD images $HOME/notebooks/images
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
WORKDIR ${HOME}/notebooks
CMD cd ${HOME}/notebooks
CMD ls