-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (37 loc) · 1.63 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
48
49
50
51
52
53
54
55
FROM "tensorflow:latest"
#Run apt-get update && yes | apt-get upgrade
#RUN mkdir -p /server
#RUN mkdir -p /tensorflow/models
#RUN apt-get install -y git python-pip --fix-missing
#RUN pip install tensorflow==1.4
#RUN apt-get install -y protobuf-compiler python-pil python-lxml
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python-tk
#RUN pip install jupyter
#RUN pip install matplotlib
RUN pip install flask
RUN apt-get install -y nano
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python-tk
#RUN git clone https://github.com/tensorflow/models.git /tensorflow/models
#WORKDIR /tensorflow/models/research
#RUN protoc object_detection/protos/*.proto --python_out=.
#RUN export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
#RUN jupyter notebook --generate-config --allow-root
#RUN echo "c.NotebookApp.password = u'sha1:6a3f528eec40:6e896b6e4828f525a6e20e5411cd1c8075d68619'" #>> /root/.jupyter/jupyter_notebook_config.py
EXPOSE 5000
#CMD ["jupyter", "notebook", "--allow-root", "--notebook-dir=/server", "--ip='*'", "--port=8888", "--no-browser"]
#WORKDIR /server
#RUN git config --global user.email "t.brown!!!!!!!"
#RUN git config --global user.name "theoesque"
#RUN git clone https://theoesque:!!!!@bitbucket.org/theoesque/lstf.git
COPY frozen_inference_graph_face.pb /server/frozen_inference_graph_face.pb
COPY face_label_map.pbtxt /server/face_label_map.pbtxt
COPY main.py /server/main.py
COPY app.py /server/app.py
COPY templates /server/templates
RUN mkdir -p /server/uploads
WORKDIR /server/
#CMD ["export", "FLASK_APP=app.py"]
#CMD ["flask", "run"]
#Needed the following chmod for Windows
RUN chmod 644 app.py
CMD ["python", "app.py"]