Files
CTFd/scripts/pip-compile.sh
Kevin Chung 54f0c46662 Bump pybluemonday to 0.0.9 (#2054)
* Bump pybluemonday to 0.0.9
* Bump python-geoacumen-city
* Use Python 3.7 in testing as Python 3.6 is EOL
2022-02-18 21:47:56 -05:00

11 lines
312 B
Bash
Executable File

#!/bin/bash
# Script to pin Python requirements in a Docker container
ROOTDIR=`pwd -P`
docker run \
--rm \
--entrypoint bash \
-v $ROOTDIR:/mnt/CTFd \
-e CUSTOM_COMPILE_COMMAND='./scripts/pip-compile.sh' \
-it python:3.7 \
-c 'cd /mnt/CTFd && pip install pip-tools==6.5.1 && pip-compile'