diff options
author | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
---|---|---|
committer | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
commit | b56fb8bc40fcf841f9cb1ebafb5283daec00e47e (patch) | |
tree | a094e60c1e70d9d3faba459d4ce49f6ee6d88a3b /auth-server-poc/Dockerfile | |
parent | b80133312330f8f060a78debc635587b88f2367c (diff) |
Add auth-server-poc
Diffstat (limited to 'auth-server-poc/Dockerfile')
-rw-r--r-- | auth-server-poc/Dockerfile | 25 |
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 |