forked from primiano/docker-webvirtmgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 824 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
FROM ubuntu:14.04
MAINTAINER samhsupro <[email protected]>
RUN apt-get -y update && \
apt-get -y install git python-pip python-libvirt python-libxml2 supervisor novnc
RUN git clone https://github.com/retspen/webvirtmgr /webvirtmgr
WORKDIR /webvirtmgr
RUN git checkout 7f140f99f4 #v4.8.8
RUN pip install -r requirements.txt
ADD local_settings.py /webvirtmgr/webvirtmgr/local/local_settings.py
RUN /usr/bin/python /webvirtmgr/manage.py collectstatic --noinput
ADD supervisor.webvirtmgr.conf /etc/supervisor/conf.d/webvirtmgr.conf
ADD gunicorn.conf.py /webvirtmgr/conf/gunicorn.conf.py
ADD bootstrap.sh /webvirtmgr/bootstrap.sh
RUN useradd webvirtmgr -d /webvirtmgr/sqldata/ -s /sbin/nologin
RUN chown -R webvirtmgr /webvirtmgr
RUN apt-get -ys clean
WORKDIR /
EXPOSE 8080
EXPOSE 6080
CMD ["supervisord", "-n"]