File size: 2,628 Bytes
a53d524 |
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
FROM ubuntu:20.04
RUN yes| unminimize
# Set ENV variables
ENV LANG C.UTF-8
ENV SHELL=/bin/bash
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install --no-install-recommends \
automake \
autoconf \
apt-utils \
bc \
build-essential \
ca-certificates \
cmake \
curl \
flac \
ffmpeg \
gawk \
gfortran \
gpg-agent \
libboost-all-dev \
libffi-dev \
libtool \
libbz2-dev \
liblzma-dev \
libsndfile1-dev \
patch \
software-properties-common \
sox \
subversion \
unzip \
wget \
zip \
zlib1g-dev \
nano \
iputils-ping \
sudo \
ffmpeg \
libsm6 \
libxext6 \
libboost-all-dev \
cifs-utils \
software-properties-common \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Latest version of git
ENV TZ=Etc/UTC
RUN add-apt-repository ppa:git-core/ppa -y && \
apt update && \
apt install -y --no-install-recommends git-all && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
#install espnet
RUN cd /opt && git clone --depth 5 https://github.com/espnet/espnet
RUN cd /opt/espnet/tools && ./setup_anaconda.sh anaconda espnet 3.9
RUN . /opt/espnet/tools/anaconda/etc/profile.d/conda.sh && conda activate espnet
RUN echo ". /opt/espnet/tools/anaconda/etc/profile.d/conda.sh && conda activate espnet" >> ~/.bashrc
ENV PATH /opt/espnet/tools/anaconda/bin/:$PATH
RUN apt-get update && apt install python3-pip -y
RUN conda install -n espnet jupyterlab -y
RUN pip install ipython==8.5.0 \
ipykernel==6.16.0 \
ipywidgets==8.0.2 \
cython==0.29.32 \
tqdm==4.64.1 \
jupyterlab-snippets==0.4.1
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash && \
apt-get install -y nodejs
RUN pip install pip install jupyter_contrib_nbextensions
RUN pip install --upgrade jupyterlab jupyterlab-git
RUN jupyter contrib nbextension install --user
#had problems with newer libraries
RUN pip install pydantic==1.8.2 && \
Pillow==9.5.0
RUN cd /opt/espnet/tools && make CPU_ONLY=0
EXPOSE 8888 6006
RUN mkdir /opt/notebooks
WORKDIR /opt/notebooks
CMD . /opt/espnet/tools/anaconda/etc/profile.d/conda.sh && conda activate espnet && jupyter lab --allow-root --ip=0.0.0.0 --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=False --ServerApp.allow_remote_access=True --ServerApp.allow_origin='*' --ServerApp.allow_credentials=True |