Skip to content

Commit b71d486

Browse files
committed
docs(Common): Add a Docker license key example
1 parent 1fad84d commit b71d486

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

deployment/ci-cd-license-key.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ steps:
7979
### Docker
8080
8181
1. [Create a Docker build secret](https://docs.docker.com/build/building/secrets/#using-build-secrets) that holds the Telerik license key file.
82-
1. [Mount the secret](https://docs.docker.com/build/building/secrets/#secret-mounts) and set a `TELERIK_LICENSE` [environment variable in the container](https://docs.docker.com/build/building/secrets/#target).
82+
````SH.skip-repl
83+
docker build --secret id=telerik-license-key,src=/path/to/telerik-license.txt .
84+
````
85+
1. [Mount the secret](https://docs.docker.com/build/building/secrets/#secret-mounts) and set a `TELERIK_LICENSE` [environment variable in the build container](https://docs.docker.com/build/building/secrets/#target). The environment variable is required when building and publishing the Telerik Blazor app.
86+
````SH.skip-repl
87+
RUN --mount=type=secret,id=telerik-license-key,env=TELERIK_LICENSE \
88+
dotnet publish BlazorProjectName.csproj -c Release -o /app/publish /p:UseAppHost=false
89+
````
8390
8491
## Using License File
8592

0 commit comments

Comments
 (0)