summaryrefslogtreecommitdiff
path: root/auth-server-poc/Dockerfile
blob: d2fbd28fff3a45fe4764c1f9fca750f3080a35cf (plain)
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
FROM debian:buster

COPY . /opt/auth-server-poc
RUN /opt/auth-server-poc/setup.sh

# Prepare for supervisord, uwsgi, ngninx
COPY config/uwsgi.ini /opt/auth-server-poc/
#COPY config/.htpasswd /opt/auth-server-poc/.htpasswd
COPY config/supervisord_app.conf /etc/supervisor/supervisord.conf
COPY config/nginx_app.conf /etc/nginx/sites-available/
COPY config/nginx.conf /etc/nginx/

# Give nginx some special treatment
RUN unlink /etc/nginx/sites-enabled/default
RUN ln -s /etc/nginx/sites-available/nginx_app.conf /etc/nginx/sites-enabled/default
RUN chown www-data:www-data /var/log/nginx
RUN chown -R  www-data:www-data /var/log/nginx/
RUN chown -R www-data:www-data /var/lib/nginx
RUN chown www-data:www-data /var/lib/nginx/
RUN chown www-data:www-data /opt/auth-server-poc

# Expose HTTP
EXPOSE 80

ENTRYPOINT supervisord -c /etc/supervisor/supervisord.conf