From a50aa17f7005975495dbde291ccdca7bb20f928b Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 5 Feb 2018 19:10:32 +0000 Subject: [PATCH] Move to the python:alpine docker image - Migrate group and user creation to Alpine syntax --- .../compose/production/django/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 41dc7763b..445198960 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -11,8 +11,8 @@ RUN apk update \ # CFFI dependencies && apk add libffi-dev openssl-dev py-cffi -RUN groupadd -r django \ - && useradd -r -g django django +RUN addgroup -S django \ + && adduser -S -G django django # Requirements have to be pulled and installed here, otherwise caching won't work COPY ./requirements /requirements