-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
52 lines (36 loc) · 965 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ANACONDA
#FROM continuumio/miniconda3
#PIP
FROM python:3.10-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
#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 pip install jetset==1.3.0
# 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 notebooks $HOME/notebooks
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