forked from waltermoreira/abaco
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile-dashboard
39 lines (26 loc) · 1.22 KB
/
Dockerfile-dashboard
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
# Image: abaco/dashboard
# Description: Web dashboard application for the Abaco (Actor Based Con(mputing)tainers platform.
FROM buildpack-deps:trusty
MAINTAINER Joe Stubbs <[email protected]>
EXPOSE 8000
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
RUN apt-get update && \
apt-get upgrade -y && \
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y build-essential python python-dev gettext nodejs xvfb chromium-browser ruby-sass uwsgi && \
curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python
RUN pip install --upgrade pip && pip install uwsgi uwsgitop
RUN mkdir -p /opt/uwsgi && \
curl -SLk -o /opt/uwsgi/uwsgi-2.0.15.tar.gz https://projects.unbit.it/downloads/uwsgi-2.0.15.tar.gz && \
tar -xvzf /opt/uwsgi/uwsgi-2.0.15.tar.gz -C /opt/uwsgi && \
uwsgi --build-plugin /opt/uwsgi/uwsgi-2.0.15/plugins/zabbix && \
mkdir -p /usr/lib/uwsgi/plugins && \
mv zabbix_plugin.so /usr/lib/uwsgi/plugins/.
COPY requirements-dashboard.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY actors /actors
COPY dashboard /abaco
WORKDIR /abaco
RUN python manage.py collectstatic --noinput
CMD ["/usr/local/bin/uwsgi", "--ini", "/abaco/conf/uwsgi.ini"]