forked from TensorPy/TensorPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·55 lines (49 loc) · 1.73 KB
/
Dockerfile
File metadata and controls
executable file
·55 lines (49 loc) · 1.73 KB
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
# TensorPy Docker Image
FROM ubuntu:15.10
#=======================================
# Install Python and Basic Python Tools
#=======================================
RUN apt-get update && apt-get install -y python python-pip python-setuptools \
python-dev python-distribute python-virtualenv
#=========================================
# Install Bash Command Line Tools and Git
#=========================================
RUN apt-get -qy --no-install-recommends install \
sudo \
unzip \
wget \
curl \
vim \
git-core \
&& rm -rf /var/lib/apt/lists/*
#========================================
# Add normal user with passwordless sudo
#========================================
RUN sudo useradd seluser --shell /bin/bash --create-home \
&& sudo usermod -a -G sudo seluser \
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers
#==============================
# Locale and encoding settings
#==============================
ENV LANGUAGE en_US.UTF-8
ENV LANG ${LANGUAGE}
RUN locale-gen ${LANGUAGE} \
&& dpkg-reconfigure --frontend noninteractive locales
#==============================
# Set up TensorFlow / TensorPy
#==============================
COPY third_party/docker/docker_install.sh /TensorPy/docker_install.sh
COPY requirements.txt /TensorPy/
COPY setup.py /TensorPy/
COPY tensorpy /TensorPy/tensorpy/
COPY examples /TensorPy/examples/
COPY third_party/docker /TensorPy/third_party/docker/
COPY third_party/docker/run_docker_test.sh /TensorPy/
RUN cd /TensorPy && ls && ./third_party/docker/docker_install.sh
RUN cd /TensorPy && pip install -r requirements.txt
#===================
# Create entrypoint
#===================
COPY third_party/docker/docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/bash"]