Skip to content

Commit 478abcd

Browse files
xiu-csderuyter92
andauthored
Update Makefile
Co-authored-by: Jaap de Ruyter van Steveninck <32810691+deruyter92@users.noreply.github.com>
1 parent 9f46de8 commit 478abcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ project_name_lo := $(shell echo $(PROJECT_NAME) | tr '[:upper:]' '[:lower:]')
99
IMG_NAME := fmpose3d
1010
IMG_TAG := v0.1
1111
DOCKERFILE := Dockerfile
12-
HOST_UID := $(shell id -u)
13-
HOST_GID := $(shell id -g)
12+
# Linux/macOS: use host UID/GID; Windows fallback to 1000
13+
HOST_UID ?= $(shell sh -c 'id -u 2>/dev/null || echo 1000')
14+
HOST_GID ?= $(shell sh -c 'id -g 2>/dev/null || echo 1000')
1415
BUILD_ARGS := \
1516
--build-arg USERNAME=fmpose3d \
1617
--build-arg USER_GID=$(HOST_GID) \

0 commit comments

Comments
 (0)