File size: 356 Bytes
8e681e8
 
 
 
 
 
 
 
 
 
3ece354
8e681e8
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

CONTAINER_NAME=dev-pip-tools-$(basename `git rev-parse --show-toplevel`)

docker build \
    -f Dockerfile \
    --target pip-tools-install \
    --tag $CONTAINER_NAME \
    . \
&& docker run -it \
    --rm \
    --mount type=bind,source="$(pwd)/src",target=/home/user/src \
    $CONTAINER_NAME \
    pip-compile requirements.in --resolver=backtracking