-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
18 lines (14 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM tiangolo/uwsgi-nginx:python3.7
ENV UWSGI_INI /var/www/haproxy-wi/uwsgi.ini
RUN apt-get update && \
apt-get install fcgiwrap supervisor git net-tools lshw dos2unix gcc netcat python3-pip g++ freetype2-demos libatlas-base-dev libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev libssl-dev ansible -y
WORKDIR /var/www/haproxy-wi
RUN git clone https://github.com/Aidaho12/haproxy-wi.git /var/www/haproxy-wi && \
pip3 install -r requirements.txt && \
chmod +x app/tools/*.py && chmod +x app/*.py && mkdir keys configs configs/hap_config/ configs/kp_config/ /log/ && \
/var/www/haproxy-wi/app/create_db.py
COPY supervisord.conf /etc/supervisor/conf.d/additional.conf
COPY nginx.conf /app/nginx.conf
COPY uwsgi.ini /var/www/haproxy-wi/uwsgi.ini
RUN chown -R nginx:nginx /var/www/haproxy-wi
WORKDIR /var/www/haproxy-wi/