Skip to content

Commit

Permalink
[feat] automaticlally detect user id based on username (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop authored Nov 30, 2023
1 parent 4aabfa0 commit d85ae41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/build_user_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
##

echo $1
echo $2
USER_ID=$(id -g "$USER")

docker build --build-arg USERNAME=$USER --no-cache --build-arg USER_ID=$1 --build-arg IMAGE_TAG=$2 -f user.dockerfile --tag curobo_docker:user_$2 .
docker build --build-arg USERNAME="$USER" --no-cache --build-arg USER_ID="$USER_ID" --build-arg IMAGE_TAG="$1" -f user.dockerfile --tag curobo_docker:user_"$1" .

0 comments on commit d85ae41

Please sign in to comment.