linuxserver/firefox docker 이미지에서는 한글 폰트가 모두 깨지는 현상이 나타난다
한글폰트만 내려 받아서 저장 하면 해결되지만, 도커 재생성 시 마다 폰트를 내려 받는 작업을 해주어야 해서 그 귀찮음을 해결 하고자 아래의 초기설정을 공유 함
□ docker-compose 내 entrypoint 와 command 조합으로 자동 실행
entrypoint : 환경적 변화가 적은 수행
command : 환경적 변화에 따라 수행
Make a shell [/config/fonts.sh]
#!/bin/sh
/bin/mkdir /usr/share/fonts/Nanum/ &&
/usr/bin/curl -o /usr/share/fonts/Nanum/Nanum-coding.zip -L https://fonts.google.com/download?family=Nanum%20Gothic%20Coding &&
/usr/bin/curl -o /usr/share/fonts/Nanum/Nanum.zip -L https://fonts.google.com/download?family=Nanum%20Gothic &&
unzip /usr/share/fonts/Nanum/Nanum-coding.zip /usr/share/fonts/Nanum/ &&
unzip /usr/share/fonts/Nanum/Nanum.zip /usr/share/fonts/Nanum/
[Modify Docker-compose]
entrypoint: ["sh", "-c"]
command: /config/fonts.sh&/init'IT' 카테고리의 다른 글
| Alpine Linux using the korean input method (0) | 2022.10.17 |
|---|---|
| Linux user password encrypted change sh script (0) | 2022.10.07 |
| google play search issue(구글 플레이 오류) (0) | 2022.09.18 |
| Speedtest ubuntu 설치시 apt 오류 해결법 (0) | 2022.08.06 |
| UBUNTU 특정 폴더 자동 백업 (0) | 2022.07.30 |