This commit is contained in:
w-okada 2023-08-26 15:11:04 +09:00
parent 8312189942
commit fa6944ce9e
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@ GROUP_ID=${LOCAL_GID:-9001}
echo "exec with [UID : $USER_ID, GID: $GROUP_ID]"
useradd -u $USER_ID -o -m user
groupmod -g $GROUP_ID user
chmod uog+rwx tmp_dir
#su user
#echo "parameter: $@"

View File

@ -24,8 +24,8 @@ if [ "${USE_GPU}" = "on" ]; then
-e EX_PORT=${EX_PORT} \
-e LOCAL_UID=$(id -u $USER) \
-e LOCAL_GID=$(id -g $USER) \
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir \
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain \
-p ${EX_PORT}:18888 \
$DOCKER_IMAGE -p 18888 --https true \
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \
@ -47,6 +47,8 @@ else
-e EX_PORT=${EX_PORT} \
-e LOCAL_UID=$(id -u $USER) \
-e LOCAL_GID=$(id -g $USER) \
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir \
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain \
-p ${EX_PORT}:18888 \
$DOCKER_IMAGE -p 18888 --https true \
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \