Update Dockerfile-alpine and losen 'packaging' version

Signed-off-by: David Dashyan <mail@davie.li>
This commit is contained in:
David Dashyan 2020-08-13 19:52:45 +03:00
parent 41f7534f3a
commit 40a92756f9
2 changed files with 3 additions and 3 deletions

View File

@ -4,12 +4,12 @@ RUN mkdir -p /usr/src/app
COPY . /usr/src/app/
WORKDIR /usr/src/app
RUN apk --update add sudo \
&& apk --update add python3 openssl ca-certificates git\
&& apk --update add python3 py-pip openssl ca-certificates git\
&& apk --update add --virtual build-dependencies python3-dev \
libffi-dev openssl-dev build-base \
&& apk add --no-cache libstdc++ \
&& pip3 install --upgrade pip cffi \
&& pip install -e .[dev] \
&& pip install -e . \
&& apk del build-dependencies \
&& rm -f /var/cache/apk/*
# When developing with Python in a docker container, we are using PYTHONBUFFERED

View File

@ -80,7 +80,7 @@ install_requires = [
'gunicorn==20.0.4',
'jsonschema==3.2.0',
'logstats==0.3.0',
'packaging==20.0.0',
'packaging>=20.0.0', # Dockerfile-alpine required for pkg has ver 20.0.4
# TODO Consider not installing the db drivers, or putting them in extras.
'pymongo==3.7.2',
'python-rapidjson==0.9.1',