Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Fix duplicate UID error when building the tools as root
Browse files Browse the repository at this point in the history
Closes: #29
  • Loading branch information
flx42 committed Jan 11, 2016
1 parent 5d13992 commit 659706d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV CGO_CFLAGS "-I /usr/local/cuda-6.5/include -I /usr/include/nvidia/gdk"
ENV CGO_LDFLAGS "-L /usr/local/cuda-6.5/lib64 -L /usr/src/gdk/nvml/lib -ldl -lrt"

ARG UID
RUN useradd --uid $UID build
RUN useradd --non-unique --uid $UID build
USER build

CMD go get -v -ldflags="-s" nvidia-docker nvidia-docker-plugin

0 comments on commit 659706d

Please sign in to comment.