content: FROM tensorflow/tensorflow:custom-op-ubuntu16
  
  RUN rm -f /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_7-xenial.list && apt-get update && \
      apt-get install -y \
      git \
      gcc \
      g++ \
      gdb \
      make \
      patch \
      curl \
      nano \
      unzip \
      ffmpeg \
      dnsutils
  
  RUN curl -sSOL https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 && \
      mv bazelisk-linux-amd64 /usr/local/bin/bazel && \
      chmod +x /usr/local/bin/bazel
  
  ARG CONDA_OS=Linux
  
  # Miniconda - Python 3.7, 64-bit, x86, latest
  RUN curl -sL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o mconda-install.sh && \
      bash -x mconda-install.sh -b -p miniconda && \
      rm mconda-install.sh
  
  ENV PATH="/miniconda/bin:$PATH"
  
  ARG CONDA_ADD_PACKAGES=""
  
  RUN conda create -y -q -n tfio-dev python=3.7 ${CONDA_ADD_PACKAGES}
  
  ARG ARROW_VERSION=0.16.0
  
  RUN echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
      echo "source activate tfio-dev" >> ~/.bashrc
  
  ARG PIP_ADD_PACKAGES=""
  
  RUN /bin/bash -c "source activate tfio-dev && python -m pip install \
      avro-python3 \
      python-snappy \
      parameterized \
      pytest \
      pytest-benchmark \
      pylint \
      boto3 \
      google-cloud-pubsub==0.39.1 \
      google-cloud-bigquery-storage==1.1.0 \
      pyarrow==${ARROW_VERSION} \
      pandas \
      scipy \
      fastavro \
      gast==0.2.2 \
      ${PIP_ADD_PACKAGES} \
      "
  
  ENV TFIO_DATAPATH=bazel-bin
  