build(Dockerfile): 更新字体安装方法并优化环境配置
Browse files- 添加命令将自定义字体复制到系统字体目录并更新缓存
- 移除多余的空行,提高 Dockerfile 可读性
- 保留原有的逻辑和功能不变
- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -25,9 +25,13 @@ WORKDIR $HOME/app
|
|
| 25 |
|
| 26 |
RUN git clone --depth=1 https://github.com/CandriaJS/meme-generator .
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
COPY config.toml $HOME/.config/meme_generator/config.toml
|
| 29 |
RUN uv python install 3.12
|
| 30 |
|
|
|
|
| 31 |
ENV PATH="$HOME/app/.venv/bin:$PATH"
|
| 32 |
|
| 33 |
RUN uv sync --locked --no-dev
|
|
|
|
| 25 |
|
| 26 |
RUN git clone --depth=1 https://github.com/CandriaJS/meme-generator .
|
| 27 |
|
| 28 |
+
RUN mkdir -p $HOME/.local/share/fonts/meme && \
|
| 29 |
+
cp ./resources/fonts/* $HOME/.local/share/fonts/meme/ && \
|
| 30 |
+
fc-cache -fv
|
| 31 |
COPY config.toml $HOME/.config/meme_generator/config.toml
|
| 32 |
RUN uv python install 3.12
|
| 33 |
|
| 34 |
+
|
| 35 |
ENV PATH="$HOME/app/.venv/bin:$PATH"
|
| 36 |
|
| 37 |
RUN uv sync --locked --no-dev
|