-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (33 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
40 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Modern base image for .NET 9 development and DevExpress XAF Blazor
FROM mcr.microsoft.com/dotnet/sdk:9.0
# Update package list and upgrade all installed packages
RUN apt-get update && apt-get upgrade -y
# Install all required dependencies (including locales) before cleaning apt cache
RUN apt-get install -y \
software-properties-common \
libc6 \
libicu-dev \
libfontconfig1 \
tzdata \
libgdiplus \
fonts-dejavu-core \
fonts-dejavu-extra \
fonts-thai-tlwg \
fonts-freefont-ttf \
fonts-noto-cjk \
fonts-liberation \
fonts-crosextra-carlito \
fonts-crosextra-caladea \
fonts-noto-mono \
libfreetype6 \
locales \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables for locale and timezone
ENV LOCALE=sv_SE.UTF-8
ENV TZ=Europe/Stockholm
# Generate the specified locale and set timezone
RUN locale-gen $LOCALE && \
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
ENV LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libfreetype.so.6
# NOTE: For runtime images, use the aspnet base image and repeat the relevant font and libgdiplus installation.