Stamp git commit into docker builds. (#325)

This commit is contained in:
Paul Dee 2023-03-15 21:39:20 +01:00 committed by GitHub
parent b80c44af43
commit 814093cdd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View file

@ -193,7 +193,13 @@ feature work.
Go to the project root directory and run the following command:
```sh
docker build -t wireguard-ui .
docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) -t wireguard-ui .
```
or
```sh
docker compose build --build-arg=COMMIT=$(git rev-parse --short HEAD)
```
### Build binary file