-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (28 loc) · 1.04 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
from tiangolo/uwsgi-nginx-flask:python3.6
# Remove tiangolo's sample app
RUN rm -rf /app/*
WORKDIR /app
RUN mkdir /app/patternfinder
RUN mkdir /app/app
# Directories
ADD ./music_files /app/patternfinder/music_files
ADD ./patternfinder /app/patternfinder/patternfinder
ADD ./webapp/static /app/static
ADD ./webapp/templates /app/app/templates
# Files
ADD ./Makefile /app/patternfinder/
ADD ./setup.py /app/patternfinder/
ADD ./requirements.txt /app/patternfinder/
ADD ./webapp/requirements.txt /app/app/
ADD ./webapp/main.py /app/app/
ADD ./patternfinder/geometric_helsinki/dpwc.py /app/app/
ADD ./webapp/uwsgi.ini /app/
RUN pip install -r /app/patternfinder/requirements.txt
RUN pip install -r /app/app/requirements.txt
RUN pip install /app/patternfinder/
RUN make -f /app/patternfinder/Makefile w
EXPOSE 80
#ENV FLASK_APP=app/search.py
#CMD ["flask", "run", "--host=0.0.0.0", "--debugger", "--reload"]
#CMD ["python", "app/search.py"]
#CMD service nginx restart & uwsgi --ini patternfinder.ini --mount /patternfinder=app.search:application --gid www-data