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

Lines changed: 8 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy