File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
tools/text_processing_deployment Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1616# Dockerfile for C++ (inverse) text normalization backend Sparrowhawk https://github.com/google/sparrowhawk
1717
1818# set base image (host OS)
19- FROM continuumio/miniconda3
19+ FROM continuumio/miniconda3:25.3.1-1
2020
2121
2222# set the working directory in the container
Original file line number Diff line number Diff line change @@ -50,7 +50,13 @@ elif [[ $MODE == "test_itn_grammars" ]]; then
5050fi
5151
5252echo $MOUNTS
53- docker run -it -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --rm \
53+ # Use -it for interactive mode, -i only for test mode
54+ if [[ $MODE == " interactive" ]]; then
55+ DOCKER_FLAGS=" -it"
56+ else
57+ DOCKER_FLAGS=" -i"
58+ fi
59+ docker run $DOCKER_FLAGS -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --rm \
5460 --shm-size=4g \
5561 --ulimit memlock=-1 \
5662 --ulimit stack=67108864 \
You can’t perform that action at this time.
0 commit comments