-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
49 lines (39 loc) · 1.28 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
# We will use Ubuntu for our image
FROM ubuntu:latest
# Updating Ubuntu packages
RUN apt-get update && yes|apt-get upgrade
RUN apt-get install -y emacs neovim git gcc g++
# Adding wget and bzip2
RUN apt-get install -y wget bzip2
# Add sudo
RUN apt-get -y install sudo
# Add user ubuntu with no password, add to sudo group
RUN adduser --disabled-password --gecos '' ubuntu
RUN adduser ubuntu sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER ubuntu
WORKDIR /home/ubuntu/
RUN chmod a+rwx /home/ubuntu/
#RUN echo `pwd`
# Anaconda installing
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
RUN rm Miniconda3-latest-Linux-x86_64.sh
# Set path to conda
#ENV PATH /root/anaconda3/bin:$PATH
ENV PATH /home/ubuntu/miniconda3/bin:$PATH
# Updating Anaconda packages
RUN conda update conda
RUN conda update --all
# Get package
RUN git clone --recursive https://github.com/onolab-tmu/code_2020ICASSP_iss.git
ENV PYTHONPATH=/home/ubuntu/code_2020ICASSP_iss:$PYTHONPATH
# Install environment
RUN cd code_2020ICASSP_iss
RUN conda env create -f piva/environment.yml
RUN conda activate piva
RUN cd piva
RUN python setup.py build_ext --inplace
RUN cd ..
# Run Jupytewr notebook as Docker main process
CMD [ "sh", "--login", "-i" ]