From f1bcb58cbffecd4a1b11f31d5901379e8cfbcc70 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Thu, 20 Sep 2018 23:18:02 +0200 Subject: Drop privileges in UWSGI. --- docker/app/stretch/3.6/Dockerfile | 2 +- docker/app/stretch/3.7/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docker/app/stretch') diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile index 365ea451..41e50ed9 100644 --- a/docker/app/stretch/3.6/Dockerfile +++ b/docker/app/stretch/3.6/Dockerfile @@ -5,6 +5,7 @@ ARG EXTRAS=deploy RUN adduser \ --disabled-login \ --no-create-home \ + --uid 1500 \ pysite RUN apt-get update -y \ @@ -28,5 +29,4 @@ RUN apt-get purge -y \ libc-dev \ libpq-dev -USER pysite CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"] diff --git a/docker/app/stretch/3.7/Dockerfile b/docker/app/stretch/3.7/Dockerfile index f0069716..7cc8f6ad 100644 --- a/docker/app/stretch/3.7/Dockerfile +++ b/docker/app/stretch/3.7/Dockerfile @@ -5,6 +5,7 @@ ARG EXTRAS=deploy RUN adduser \ --disabled-login \ --no-create-home \ + --uid 1500 \ pysite RUN apt-get update -y \ @@ -28,5 +29,4 @@ RUN apt-get purge -y \ libc-dev \ libpq-dev -USER pysite CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"] -- cgit v1.2.3