Move to the python:alpine docker image

- Migrate group and user creation to Alpine syntax
This commit is contained in:
Bruno Alla 2018-02-05 19:10:32 +00:00
parent bf08a56e84
commit a50aa17f70

View File

@ -11,8 +11,8 @@ RUN apk update \
# CFFI dependencies # CFFI dependencies
&& apk add libffi-dev openssl-dev py-cffi && apk add libffi-dev openssl-dev py-cffi
RUN groupadd -r django \ RUN addgroup -S django \
&& useradd -r -g django django && adduser -S -G django django
# Requirements have to be pulled and installed here, otherwise caching won't work # Requirements have to be pulled and installed here, otherwise caching won't work
COPY ./requirements /requirements COPY ./requirements /requirements