diff --git a/Dockerfile b/Dockerfile index 62419ca..e80fcc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,17 @@ RUN apk update && \ pip install --upgrade pip && \ mkdir -p /srv/pypi +# Install packages wich have build dependencies, remove them after installation +# because they are not required during runtime. +RUN apk add --no-cache --virtual .build-deps \ + gcc \ + libc-dev \ + libffi-dev \ + python-dev && \ + pip install bcrypt && \ + apk del --no-cache .build-deps && \ + rm /var/cache/apk/* + RUN pip install -U passlib pypiserver[cache]==1.2.1 EXPOSE 80