fix fonts and widget exantion
This commit is contained in:
59
Dockerfile
59
Dockerfile
@@ -8,6 +8,8 @@ RUN mkdir -p /app /defaults \
|
||||
&& chown root:root /tmp/.X11-unix \
|
||||
&& chmod 1777 /tmp/.X11-unix
|
||||
|
||||
RUN ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime && \
|
||||
echo "Europe/Rome" > /etc/timezone
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
@@ -20,7 +22,10 @@ RUN apt-get update && \
|
||||
libgdk-pixbuf2.0-0 libpango1.0-0 libatk1.0-0 \
|
||||
libcups2 libnss3 \
|
||||
inotify-tools gosu \
|
||||
openbox \
|
||||
tzdata \
|
||||
firefox-esr-l10n-it \
|
||||
# openbox \
|
||||
# pcmanfm \
|
||||
dbus-user-session \
|
||||
mousepad \
|
||||
x11-xserver-utils xauth \
|
||||
@@ -30,18 +35,56 @@ RUN apt-get update && \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# Install Windows-like themes
|
||||
# --- Install Microsoft core fonts (Arial, Times New Roman, Courier New, etc.) ---
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
fontconfig \
|
||||
cabextract \
|
||||
xfonts-utils \
|
||||
gnupg; \
|
||||
\
|
||||
sed -i 's/ main$/ main contrib/g' /etc/apt/sources.list; \
|
||||
apt-get update; \
|
||||
\
|
||||
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections; \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ttf-mscorefonts-installer; \
|
||||
\
|
||||
fc-cache -f -v; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
|
||||
# Force Firefox UI/locale to Italian via enterprise policies
|
||||
RUN mkdir -p /usr/lib/firefox-esr/distribution && \
|
||||
cat > /usr/lib/firefox-esr/distribution/policies.json <<'EOF'
|
||||
{
|
||||
"policies": {
|
||||
"RequestedLocales": ["it-IT"],
|
||||
"Preferences": {
|
||||
"intl.locale.requested": { "Value": "it-IT", "Status": "locked" },
|
||||
"intl.accept_languages": { "Value": "it-IT, it, en-US, en", "Status": "locked" }
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
# Install Windows-like theme engines + temporarily install git, clone theme, then remove git
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
gtk2-engines-murrine \
|
||||
gtk2-engines-pixbuf \
|
||||
git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
git && \
|
||||
cd /usr/share/themes && \
|
||||
git clone --depth=1 https://github.com/B00merang-Project/Windows-10.git && \
|
||||
rm -rf /usr/share/themes/Windows-10/.git && \
|
||||
chown -R root:root /usr/share/themes/Windows-10 && \
|
||||
apt-get purge -y --auto-remove git && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm -rf /root/.cache /root/.config
|
||||
|
||||
# Install Windows 10 theme
|
||||
RUN cd /usr/share/themes && \
|
||||
git clone https://github.com/B00merang-Project/Windows-10.git && \
|
||||
chown -R root:root /usr/share/themes/Windows-10
|
||||
# Configure Windows 10 theme for abc user
|
||||
RUN mkdir -p /home/abc/.config/gtk-2.0 && \
|
||||
echo 'gtk-theme-name="Windows-10"' > /home/abc/.gtkrc-2.0 && \
|
||||
|
||||
Reference in New Issue
Block a user