-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.fast
66 lines (50 loc) · 1.85 KB
/
Dockerfile.fast
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
ARG UBUNTU_VERSION=16.04
FROM ubuntu:${UBUNTU_VERSION}
LABEL maintainer="CVI [email protected]"
ENV OPENCV_DIR "$LIB_DIR/opencv"
RUN mkdir -p "$OPENCV_DIR"
# Pick up some dependencies
RUN apt-get update && \
apt-get -y install wget git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:george-edison55/cmake-3.x && \
apt-get install -y cmake && \
apt-get update
ARG USE_PYTHON_3_NOT_2=True
ARG _PY_SUFFIX=${USE_PYTHON_3_NOT_2:+3}
ARG PYTHON=python${_PY_SUFFIX}
ARG PIP=pip${_PY_SUFFIX}
RUN apt-get update && apt-get install -y \
${PYTHON} \
${PYTHON}-pip
RUN ${PIP} install --upgrade \
pip \
setuptools
ARG TF_PACKAGE=tensorflow
RUN ${PIP} install ${TF_PACKAGE}
COPY bashrc /etc/bash.bashrc
RUN chmod a+rwx /etc/bash.bashrc
RUN ${PIP} install jupyter scikit-image scipy numpy matplotlib keras opencv-python
RUN apt-get -y install unzip
COPY bashrc /etc/bash.bashrc
RUN chmod a+rwx /etc/bash.bashrc
RUN mkdir /pysangamam && chmod a+rwx /pysangamam
RUN mkdir /.local && chmod a+rwx /.local
WORKDIR /pysangamam
EXPOSE 8888
RUN apt update && apt install -y libsm6 libxext6 libgtk2.0-dev
RUN apt-get install -y git vim curl
RUN ${PIP} install h5py natsort argparse tqdm html5lib bleach opencv-contrib-python
WORKDIR /pysangamam
RUN git clone https://github.com/iitmcvg/Fast-Image-Classification.git /pysangamam/keras-bottlenecks
WORKDIR /pysangamam
RUN git clone https://github.com/iitmcvg/pysangamam.git /pysangamam/workshop
WORKDIR /pysangamam/keras-bottlenecks
RUN curl -LO http://download.tensorflow.org/example_images/flower_photos.tgz && \
tar xzf flower_photos.tgz && \
rm -rf flower_photos/LICENSE*
#CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/notebooks --ip 0.0.0.0 --no-browser --allow-root"]
CMD ["bash"]