mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
litrpc+proto: fix ownership in docker container
This was discovered while debugging the reproducible build. We used the wrong group ID. And the environment variables aren't super portable so we use the correct command to get the numeric user and group IDs.
This commit is contained in:
parent
fc77836204
commit
ea33903622
2 changed files with 2 additions and 4 deletions
|
|
@ -17,7 +17,6 @@ docker build -t lit-protobuf-builder \
|
|||
echo "Compiling and formatting *.proto files..."
|
||||
docker run \
|
||||
--rm \
|
||||
--user $UID:$UID \
|
||||
-e UID=$UID \
|
||||
--user $(id -u):$(id -g) \
|
||||
-v "$DIR/../:/build" \
|
||||
lit-protobuf-builder
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ docker build -q -t lit-protobuf-builder .
|
|||
echo "Compiling and formatting *.proto files..."
|
||||
docker run \
|
||||
--rm \
|
||||
--user $UID:$UID \
|
||||
-e UID=$UID \
|
||||
--user $(id -u):$(id -g) \
|
||||
-v "$DIR/../:/build" \
|
||||
lit-protobuf-builder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue