content: FROM ubuntu:18.04
  LABEL maintainer "June Oh <me@juneoh.net>"
  
  ENV TZ=Asia/Seoul
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  RUN echo "XKBMODEL=\"pc105\"\n \
            XKBLAYOUT=\"us\"\n \
            XKBVARIANT=\"\"\n \
            XKBOPTIONS=\"\"" > /etc/default/keyboard
  
  RUN apt-get update && apt-get install -y --no-install-recommends \
           build-essential \
           cmake \
           git \
           curl \
           vim \
           ca-certificates \
           libjpeg-dev \
           libpng-dev \
           sudo \
           apt-utils \
           man \
           tmux \
           less \
           wget \
           iputils-ping \
           zsh \
           htop \
           software-properties-common \
           tzdata \
           locales \
           openssh-server \
           g++ \
           openjdk-8-jdk \
           xauth \
           rsync &&\
       rm -rf /var/lib/apt/lists/*
  
  RUN locale-gen ko_KR.UTF-8
  ENV LANG="ko_KR.UTF-8" LANGUAGE="ko_KR:en" LC_ALL="ko_KR.UTF-8"
  
  RUN curl -o ~/miniconda.sh -O  https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh  && \
       chmod +x ~/miniconda.sh && \
       ~/miniconda.sh -b -p /opt/conda && \     
       rm ~/miniconda.sh
  ENV PATH /opt/conda/bin:$PATH
  RUN conda install python=3.6 jupyter pip=9.0.1
  RUN conda clean -ya 
  RUN echo "export PATH=/opt/conda/bin:\$PATH" > /etc/profile.d/conda.sh
  
  RUN pip install scipy scikit-learn pandas cython visdom matplotlib konlpy
  
  RUN pip install tensorflow==1.12.0
  
  RUN pip install --upgrade pip
  RUN rm -rf ~/.cache/pip
  
  ENV PYTHONUNBUFFERED=1
  RUN mkdir /workspace
  WORKDIR /workspace
  
  CMD ["jupyter", "notebook", "--allow-root", "--ip=0.0.0.0", "--NotebookApp.custom_display_url='http://localhost:8888'"]
  