Skip to content

Commit e40f59e

Browse files
committed
Refactor Dockerfile to improve dependency installation and cleanup process
1 parent bf7e267 commit e40f59e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0
44
# Update package list and upgrade all installed packages
55
RUN apt-get update && apt-get upgrade -y
66

7-
# Install required dependencies for DevExpress XAF Blazor and reporting
8-
# Includes broad font support for Swedish, Finnish, Thai, and Windows compatibility
7+
8+
# Install all required dependencies (including locales) before cleaning apt cache
99
RUN apt-get install -y \
1010
software-properties-common \
1111
libc6 \
@@ -21,10 +21,10 @@ RUN apt-get install -y \
2121
fonts-liberation \
2222
fonts-crosextra-carlito \
2323
fonts-crosextra-caladea \
24-
fonts-noto-mono
25-
26-
# Install locales package to enable locale settings
27-
RUN apt-get install -y locales
24+
fonts-noto-mono \
25+
libfreetype6 \
26+
locales \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
# Set environment variables for locale and timezone
3030
ENV LOCALE=sv_SE.UTF-8
@@ -35,4 +35,6 @@ RUN locale-gen $LOCALE && \
3535
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
3636
dpkg-reconfigure -f noninteractive tzdata
3737

38+
ENV LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libfreetype.so.6
39+
3840
# NOTE: For runtime images, use the aspnet base image and repeat the relevant font and libgdiplus installation.

0 commit comments

Comments
 (0)