- Home
- Forum
- Angular - EJ 2
- Registering license in Docker
Registering license in Docker
Using a web API isn't secured enough, even if we require the user to be authenticated, the key that will be fetched can still be seen by the user.
Meanwhile on docker, you'll have an image that have all the tools and libraries related to building an angular project. Then create a separate image(usually nginx) for hosting the compiled files copied from the previous image.
I tried to add the line `RUN npx syncfusion-license activate` right after the `ng build` command then copied the generated files to the actual image with nginx that will actually host the files. naturally, it has no Node-related packages.
Hi Virgilio Dolosa,
Thank you for your query regarding Syncfusion license activation in a Docker-based Angular setup.
To assist you more accurately, could you please confirm the following details:
- Are you using the Syncfusion Spreadsheet or any other specific Syncfusion control in your Angular application or Web API setup?
- Are you utilizing any Syncfusion Docker images available on Docker Hub?
- Could you clarify how the Web API is integrated with your Angular project, and whether it interacts with any Syncfusion components?
- Please provide a brief overview of your current environment setup, including:
- Angular version
- Docker configuration (e.g., multi-stage builds, base images used)
- If possible, kindly share the Docker configuration file you are currently using to build the image.
Please share the above requested details from your end. Based on that, we will review your setup and provide further guidance accordingly.
Regards,
Babu.
Hi Virgilio Dolosa,
Here, we have shared some additional details.
If your production environment is Docker-based, register the Syncfusion license in text file and activate through npx command. Please ensure that the Syncfusion license is activated before the build process by following these steps:
- Create a license text file: In the application root directory, create a file named syncfusion-license.txt and paste your Syncfusion license key inside it.
- To
ensure the Syncfusion license is activated properly, we need to include
the npx syncfusion-license activate command after installing dependencies but before the Angular
build step.
dockerfile
|
# Run Syncfusion License Activation (AFTER
installing packages but BEFORE Angular build) |
This ensures the license is properly applied before
the Angular build process begins. Here’s the guide for that:
Register Syncfusion License Key in
CI Services
Please review the above shared details and get back to us if you have any further questions or concerns.
Regards,
Babu.
- 2 Replies
- 2 Participants
-
VD Virgilio Dolosa
- Sep 9, 2025 07:10 AM UTC
- Sep 25, 2025 02:43 PM UTC