Skip to content

Commit f5c0807

Browse files
committed
update dockerfile
1 parent 039d495 commit f5c0807

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docker/Dockerfile.local

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ FROM node:24-slim AS base
1818
# RUN apt-get update && \
1919
# apt-get install -y postgresql-client-18 && \
2020
# rm -rf /var/lib/apt/lists/*
21+
22+
# # 安装字体
23+
# COPY src/app/(frontend)/fonts/PressStart2P-Regular.ttf /usr/share/fonts/truetype/
24+
# RUN fc-cache -f -v
2125
# # ================== postgres client install end ==================
2226

2327
# 基础环境

docker/Dockerfile.prod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmo
1818
RUN apt-get update && \
1919
apt-get install -y postgresql-client-18 && \
2020
rm -rf /var/lib/apt/lists/*
21+
22+
# 安装字体
23+
COPY src/app/(frontend)/fonts/PressStart2P-Regular.ttf /usr/share/fonts/truetype/
24+
RUN fc-cache -f -v
2125
# ================== postgres client install end ==================
2226

2327
WORKDIR /app

docker/Dockerfile.prod.standalone

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmo
1818
RUN apt-get update && \
1919
apt-get install -y postgresql-client-18 && \
2020
rm -rf /var/lib/apt/lists/*
21+
22+
# 安装字体
23+
COPY src/app/(frontend)/fonts/PressStart2P-Regular.ttf /usr/share/fonts/truetype/
24+
RUN fc-cache -f -v
2125
# ================== postgres client install end ==================
2226

2327
WORKDIR /app

0 commit comments

Comments
 (0)