-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (28 loc) · 887 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
34
35
36
37
38
39
40
41
FROM debian:8-slim
MAINTAINER shiuday@gmail.com
RUN apt-get update -y && apt-get install -y \
vim \
git \
wget \
supervisor \
nginx \
python3 \
python3-dev \
python3-pip \
libffi-dev\
libssl-dev
# Cleaning up
RUN rm -rf /usr/local/src /tmp/* /usr/share/man /var/cache/apk/* && mkdir -p /app
# Configure nginx
COPY config/nginx.conf /etc/nginx/nginx.conf
# Configure supervisord
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY src/ /app/
WORKDIR /app
RUN pip3 install -U pip==9.0.1
RUN pip3 install -U cryptography==2.1.4
RUN pip3 install -r requirements.txt
RUN pip3 install unidecode flask flask-ask requests
EXPOSE 5000
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
#CMD ["python3", "app.py"]