change order of operations in Dockerfile

pull/321/head
bain 2023-01-07 16:57:23 +01:00
parent 04bd859f15
commit 90b8e2fc00
No known key found for this signature in database
GPG Key ID: 31F0F25E3BED0B9B
1 changed files with 5 additions and 2 deletions

View File

@ -3,12 +3,15 @@ FROM python:3-alpine
LABEL maintainer='<author>'
LABEL version='0.0.0-dev.0-build.0'
ADD . /code
ADD requirements.txt /code/requirements.txt
WORKDIR /code
RUN \
apk add --no-cache libc-dev libffi-dev gcc && \
pip install -r requirements.txt --no-cache-dir && \
apk del gcc libc-dev libffi-dev && \
apk del gcc libc-dev libffi-dev
ADD . /code
RUN \
addgroup webssh && \
adduser -Ss /bin/false -g webssh webssh && \
chown -R webssh:webssh /code