rristo's picture
initial commit
a53d524
raw
history blame
2.63 kB
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