-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (22 loc) · 1005 Bytes
/
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
FROM python:3
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install git
RUN apt-get -y install xsel xclip libxml2-dev libxslt-dev libzmq-dev libspatialindex-dev virtualenv
RUN apt-get -y install python3-lxml python3-h5py python3-numexpr python3-dateutil python3-tz python3-bs4 python3-xlrd python3-tables python3-sqlalchemy python3-xlsxwriter python3-httplib2 python3-zmq
RUN apt-get -y install python3-numpy python3-matplotlib python3-scipy python3-pandas python3-skimage python3-yaml
RUN apt-get -y install python3-skimage
RUN pip install numpy
RUN pip install tensorflow
# First copy only setup.py, run pip install, and then copy the whole donkey dir.
# This is so only changes to setup.py trigger a pip install.
COPY ./setup.py /donkey/setup.py
RUN pip install -e /donkey/[server]
COPY . /donkey/
# Change workdir and run scripts/setup.py
WORKDIR /donkey
RUN python /donkey/scripts/setup.py
EXPOSE 8886
EXPOSE 8887
# Run the server
ENTRYPOINT ["python", "/donkey/scripts/serve.py"]