-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 852 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
# Base image
from ubuntu:trusty
# Setup env
ENV DEBIAN_FRONTEND noninteractive
# Install requirements
RUN apt-get update && apt-get install -y software-properties-common && \
apt-get install -y python-pip libffi-dev python-dev libssl-dev wget \
supervisor unzip curl jq
# Get flask-ask
RUN pip install flask-ask
# Get ngrok
RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip \
-O /tmp/ngrok.zip && cd /tmp && unzip ngrok.zip && install -m 755 \
ngrok /usr/local/bin
# Copy resources
COPY src/* /opt/alexa/
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Add alexa user
RUN useradd -m alexa -d /opt/alexa && chown alexa:alexa -R /opt/alexa
# Ports to expose
EXPOSE 4040
EXPOSE 5000
# here we go
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]