fontawesome_subsetter 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/lib/fontawesome_subsetter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee1a96f695d2d8ba25bf3ef9cbc67a1904b7e1b2dc8253725e3a2a908e488fc4
|
|
4
|
+
data.tar.gz: 3077455250275b5fffefa855d18339689f6858a1ace1f862cd60b490cda58c2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4f0c881d6cc89e17990f9e02c367e1028f4abdc7196bba424dfa2e417556744769d4fdb1000b4de9db05555352c2967d715db0fe555761df054bec6477de511
|
|
7
|
+
data.tar.gz: 61bd9c7daad6fd89ce9d7e5dfec870868e6228e4153a47011e1d80bbac7558f4d1aeb3ab0173b8f98cec02455440b7cc79142ae4c229f1382f25ec76671fe689
|
data/README.md
CHANGED
|
@@ -106,6 +106,25 @@ FontawesomeSubsetter.configure do | config |
|
|
|
106
106
|
end
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
## Deploying with Kamal (Docker)
|
|
110
|
+
|
|
111
|
+
`pyftsubset` must be available during `assets:precompile` in your Docker build stage. Add the following to the **build** stage of your Dockerfile:
|
|
112
|
+
|
|
113
|
+
```dockerfile
|
|
114
|
+
# In the build stage, install pyftsubset for font subsetting
|
|
115
|
+
RUN apt-get update -qq && \
|
|
116
|
+
apt-get install --no-install-recommends -y python3 python3-pip python3-venv pipx && \
|
|
117
|
+
pipx ensurepath && \
|
|
118
|
+
pipx install fonttools && \
|
|
119
|
+
pipx inject fonttools brotli && \
|
|
120
|
+
ln -s /root/.local/bin/pyftsubset /usr/local/bin/pyftsubset && \
|
|
121
|
+
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Font subsetting runs automatically during `assets:precompile`, so no additional Dockerfile steps are needed — just make sure the line above appears before your `RUN ... assets:precompile` step.
|
|
125
|
+
|
|
126
|
+
The final (runtime) stage does **not** need `pyftsubset`; subsetted fonts are already baked into the image.
|
|
127
|
+
|
|
109
128
|
## License
|
|
110
129
|
|
|
111
130
|
[MIT](LICENSE.txt) — Copyright (c) 2026
|