-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 922 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
# Dockerfile for BIBCAT
FROM python:3.5.1
MAINTAINER Jeremy Nelson <[email protected]>
# Set environmental variables
ENV BIBCAT_GIT https://github.com/KnowledgeLinks/alliance-bibcat.git
ENV BIBCAT_HOME /opt/alliance-bibcat/
# Update and install Python3 setuptool and pip
RUN apt-get update && apt-get install -y && \
apt-get install -y cron
RUN mkdir $BIBCAT_HOME && cd $BIBCAT_HOME && \
mkdir instance && mkdir cache
COPY simple.py $BIBCAT_HOME/simple.py
COPY templates/ $BIBCAT_HOME/templates/
COPY requirements.txt $BIBCAT_HOME/requirements.txt
RUN cd $BIBCAT_HOME && ls -ltra && pip3 install -r requirements.txt
COPY static/ $BIBCAT_HOME/static/
COPY instance/config.py $BIBCAT_HOME/instance/config.py
COPY instance/google*.html $BIBCAT_HOME/templates/
COPY instance/BingSiteAuth* $BIBCAT_HOME/templates/
EXPOSE 5000
WORKDIR $BIBCAT_HOME
CMD ["nohup", "uwsgi", "-s", "0.0.0.0:5000", "-w", "simple:app"]