forked from tfrce/call-congress
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
30 lines (24 loc) · 856 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
FROM python:2.7-buster
RUN apt-get update && \
curl -sL https://deb.nodesource.com/setup_4.x | bash && \
apt-get -y install git uwsgi libpq-dev curl unzip nodejs npm
RUN mkdir /ngrok && \
cd /ngrok && \
curl -sLo ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
unzip ngrok.zip ngrok -d /bin && \
rm -r /ngrok
WORKDIR /opt
ADD requirements.txt ./
ADD requirements ./requirements
RUN pip install -r requirements/production.txt -r requirements/development.txt
ADD bower.json ./
ADD .bowerrc ./
RUN npm install -g bower
RUN bower --allow-root --config.interactive=false install
ADD alembic.ini manager.py Procfile uwsgi.ini entrypoint.sh ./
ADD scripts ./scripts/
ADD tests ./tests/
ADD call_server ./call_server/
ADD alembic ./alembic/
ADD instance ./instance/
ENTRYPOINT ["/opt/entrypoint.sh"]