How To Preload Fonts On Fluent Docker Container
Unfortunately, as a result of licensing restrictions, we cannot include fonts in the Fluent RESTful Engine container. However, it is easy to preload the fonts you need to the Fluent RESTful Engine container. The steps below describe how to preload to the Fluent RESTful Engine container.
Requirements
Create Font Repository
- Create a new folder on your computer.
- Copy the font files you want to the new folder.
Create Dockerfile
- In the same folder as the font repository, create a new file called "Dockerfile" with the following contents:
FROM windwardstudios/fluent-restful-engine:latest
COPY {font1} /usr/share/fonts
COPY {font2} /usr/share/fonts
COPY {font3} /usr/share/fonts
.
.
.
Note: You can copy as many fonts as you want. Make sure to replace {font1}, {font2}, etc. with the names of the font files you want to copy.
Build Docker Image From Dockerfile
- Open a command prompt and navigate to the folder you created.
- Run the following command (Replace {VERSION} with the version of the Fluent RESTful Engine version you are using and make sure to include the period at the end):
docker build -t fluent-restful-engine-fonts:{VERSION} .