summaryrefslogtreecommitdiff
path: root/auth-server-poc/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'auth-server-poc/Dockerfile')
-rw-r--r--auth-server-poc/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/auth-server-poc/Dockerfile b/auth-server-poc/Dockerfile
new file mode 100644
index 0000000..d2fbd28
--- /dev/null
+++ b/auth-server-poc/Dockerfile
@@ -0,0 +1,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