# What's best way to upload new web font into docker container without being wiped out after app rebuild?

**URL:** https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880
**Category:** Support
**Created:** [1월 11, 2015, 8:51오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880 "2015-01-11T08:51:18Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [1월 11, 2015, 8:51오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/1 "2015-01-11T08:51:18Z")

</div>

I’ve ssh into docker container and uploaded new web font for my forum. It’s running just fine until I did the rebuild which wiped out all of my web fonts. I’m not really sure how can I upload my new web fonts into docker without getting those fonts being wiped out every single time I do rebuild? thanks

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1월 12, 2015, 1:21오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/2 "2015-01-12T01:21:01Z")

</div>

I suggest using external cache for web font like Google Web Fonts instead. Faster and easier and safer.

[https://www.google.com/fonts](https://www.google.com/fonts)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [1월 14, 2015, 7:41오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/3 "2015-01-14T19:41:25Z")

</div>

If an external host is not an option, upload the font as a file in the “Assets for the forum design” topic.

---

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [1월 16, 2015, 5:05오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/4 "2015-01-16T05:05:29Z")

</div>

> [@codinghorror](#):
>
> I suggest using external cache for web font like Google Web Fonts instead. Faster and easier and safer.
> 
> [https://www.google.com/fonts](https://www.google.com/fonts)

I dont think Google fonts allow you to host custom font on ther ( also I dont want to my font to be available for public ). I want to is to be able to host the font files on my own server and not having it wiped out somehow.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1월 16, 2015, 6:43오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/5 "2015-01-16T06:43:17Z")

</div>

Or you can allow the upload file type and store it in the site assets topic as @riking noted.

---

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [1월 19, 2015, 12:53오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/6 "2015-01-19T00:53:28Z")

</div>

> [@riking](#):
>
> Assets for the forum design

I’ve encountered one issue when I try to upload my webfont into topic **Assets for the forum design** in **Staff** category  
When I upload SVG font file, the upload popup error say _ **“Sorry, but we couldn’t determine the size of the image. Maybe your image is corrupted?”** _

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [1월 19, 2015, 4:52오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/7 "2015-01-19T04:52:14Z")

</div>

You need to make sure it’s an “allowed upload type” first.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1월 19, 2015, 5:06오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/8 "2015-01-19T05:06:12Z")

</div>

No I think he is, but our SVG code assumes SVG is an image not a font. Are there SVG fonts that end in .svg?

---

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [1월 19, 2015, 12:47오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/9 "2015-01-19T12:47:16Z")

</div>

Yes, I’ve converted my font using a webfont conversion tool. The conversion came with SVG file,EOT file, and WOFF file as well ( it’ quite similar to Font Awesome, Font awesome also came with SVG, EOT and WOFF )

---

<div class="post-metadata">

### Author: ![vodwood](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vodwood/32/37517_2.png) [@vodwood](https://meta.discourse.org/u/vodwood)
#### Post date: [1월 22, 2015, 4:03오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/10 "2015-01-22T16:03:27Z")

</div>

Having the the same issue with an svg file.  
@Huey_Le, did you manage to install your custom fonts after all?

---

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [1월 28, 2015, 10:08오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/11 "2015-01-28T10:08:02Z")

</div>

Nope, I just could not figure out the way to do it… I gave up

---

<div class="post-metadata">

### Author: ![vodwood](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vodwood/32/37517_2.png) [@vodwood](https://meta.discourse.org/u/vodwood)
#### Post date: [1월 29, 2015, 4:52오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/12 "2015-01-29T16:52:44Z")

</div>

That’s too bad.  
@codinghorror, is it too much to ask for a couple of pointers on this issue?  
I would actually like to match the fonts I have on my blog with the one on the forum. Its not as straightforward for us people unable to utilize google fonts (or any google library for that matter). Great firewall and what not 😃

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [1월 29, 2015, 6:49오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/13 "2015-01-29T18:49:33Z")

</div>

If you already have the fonts on your blog - just link to the font files hosted over there.

Part of the problem will be getting files served up with the correct content types.

---

<div class="post-metadata">

### Author: ![vodwood](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vodwood/32/37517_2.png) [@vodwood](https://meta.discourse.org/u/vodwood)
#### Post date: [1월 30, 2015, 7:04오전 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/14 "2015-01-30T07:04:00Z")

</div>

That sounds reasonable, will try that. Thank you.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [9월 4, 2018, 1:12오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/15 "2018-09-04T13:12:18Z")

</div>



---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [9월 4, 2018, 3:57오후 UTC](https://meta.discourse.org/t/whats-best-way-to-upload-new-web-font-into-docker-container-without-being-wiped-out-after-app-rebuild/23880/16 "2018-09-04T15:57:55Z")

</div>


