-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (28 loc) · 1015 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
29
30
31
32
33
# Dockerfile for BIBCAT
FROM python:3.5.1
MAINTAINER Jeremy Nelson <[email protected]>
# Set environmental variables
ENV BIBCAT_GIT https://github.com/KnowledgeLinks/BIBCAT2.git
ENV BIBCAT_HOME /opt/bibcat
# Update and install Python3 setuptool and pip
RUN apt-get update && apt-get install -y && \
# apt-get install -y python3-setuptools &&\
# apt-get install -y python3-pip && \
# apt-get install -y supervisor && \
apt-get install -y cron
# Clone master branch of BIBCAT repository,
# setup Python env, run
RUN git clone $BIBCAT_GIT $BIBCAT_HOME && \
cd $BIBCAT_HOME && \
git submodule init && \
git submodule update && \
mkdir instance && \
pip3 install -r requirements.txt
#chmod +x $DIGCC_HOME/search/poll.py && \
#crontab crontab.txt
COPY instance/config.py $BIBCAT_HOME/instance/config.py
#COPY supervisord.conf /etc/supervisor/conf.d/
EXPOSE 5000
WORKDIR $BIBCAT_HOME
CMD ["nohup", "uwsgi", "-s", "0.0.0.0:5000", "-w", "run:parent_app"]
#CMD ["/usr/bin/supervisord"]