forked from tensorflow/io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (34 loc) · 1.14 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
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y \
build-essential \
curl \
nano \
unzip \
ffmpeg
ARG BAZEL_VERSION=0.20.0
ARG BAZEL_OS=linux
RUN curl -sL https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh -o bazel-install.sh && \
bash -x bazel-install.sh && \
rm bazel-install.sh
ARG CONDA_OS=Linux
# Miniconda - Python 3.6, 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.6 ${CONDA_ADD_PACKAGES}
ARG ARROW_VERSION=0.11.1
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 \
pytest \
pylint \
boto3 \
pyarrow==${ARROW_VERSION} \
pandas \
${PIP_ADD_PACKAGES} \
"
ENV TFIO_DATAPATH=bazel-bin