From ad45b633684d81c4e50580af83ed82fcf7bf40a3 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Thu, 25 Nov 2021 13:36:03 +0100 Subject: auth-server-poc: Optimize Docker build --- auth-server-poc/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'auth-server-poc') diff --git a/auth-server-poc/Dockerfile b/auth-server-poc/Dockerfile index d2fbd28..60ccb8f 100644 --- a/auth-server-poc/Dockerfile +++ b/auth-server-poc/Dockerfile @@ -1,6 +1,7 @@ FROM debian:buster -COPY . /opt/auth-server-poc +RUN mkdir /opt/auth-server-poc +COPY requirements.txt setup.sh /opt/auth-server-poc/ RUN /opt/auth-server-poc/setup.sh # Prepare for supervisord, uwsgi, ngninx @@ -22,4 +23,6 @@ RUN chown www-data:www-data /opt/auth-server-poc # Expose HTTP EXPOSE 80 +COPY ./ /opt/auth-server-poc/ + ENTRYPOINT supervisord -c /etc/supervisor/supervisord.conf -- cgit v1.1