Files
CTFd/scripts/pip-compile.sh
Kevin Chung 2702d83975 Bump Python to 3.9 (#2096)
* Bump Python to 3.9
* Closes #2080
2022-04-20 15:32:26 -04:00

11 lines
324 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.9-slim-buster \
-c 'cd /mnt/CTFd && pip install pip-tools==6.6.0 && pip-compile'