Pin versions in pip DOK-DL3013
Bug risk
Major
4 months ago4 months old
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>
12RUN apt-get install -y net-tools
13RUN apt-get install -y cpio
14RUN pip3 install --upgrade pip
15RUN pip3 install pyresttest16
17COPY . $WDIR/
18
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>
11RUN apt-get install -y python3-pip
12RUN apt-get install -y net-tools
13RUN apt-get install -y cpio
14RUN pip3 install --upgrade pip15RUN pip3 install pyresttest
16
17COPY . $WDIR/
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>
71
72
73# This updates the distro-provided pip and gives us pip3.6 binary
74RUN python3.7 -m pip install --upgrade pip pipenv75
76WORKDIR ${APP_ROOT}
77
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>
25        tk-dev \
26        xz-dev \
27        zlib-dev
28RUN pip install uvloop29RUN apk del .build-deps
30COPY udpserver.py /app/udpserver.py
31EXPOSE 8125/udp
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>
 80  mkdir -p /var/www/.cache && \
 81  chown www-data:www-data /var/www/.cache
 82
 83RUN \ 84    python3.6 -m pip install --upgrade pip && \
 85    python3.6 -m pip install pipenv
 86