-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (29 loc) · 1.01 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
# Dockerfile for the supreme anotator
FROM meerkatcvonpremise/meerkat_base:latest
# install necessary packages
# RUN apt-get -y install libatlas-base-dev gfortran
# add code to the container
ADD requirements.txt /code/
# upgrade pip to avoid endless compilations
#RUN pip3 install pip --upgrade
RUN pip3 install pip==9.0.1
# --upgrade
RUN pip3 install -r /code/requirements.txt
#WORKDIR /code
#ENV LD_LIBRARY_PATH "/code/carpediem/third_party/yolo_py/linux/:/usr/lib/:/usr/local/lib"
#ENV SERVER_ENV ON_PREMISE
ARG SOURCE_COMMIT
RUN test -n "$SOURCE_COMMIT"
ENV SOURCE_COMMIT $SOURCE_COMMIT
ADD server /code/server
ADD annotator_supreme/ /code/annotator_supreme
ADD run_api.py /code/
WORKDIR /code
# copy the nginx configuration to the correct location
#RUN cp server/nginx.conf /usr/local/nginx/conf/nginx.conf
#RUN ln -sf /dev/stdout /usr/local/nginx/logs/access.log
#RUN ln -sf /dev/stderr /usr/local/nginx/logs/error.log
# run the Ngnix server
CMD supervisord -c server/supervisord.conf
#for the annotator API
EXPOSE 4242