fix the manager
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -11,10 +11,12 @@ RUN mkdir -p /app /defaults \
|
||||
RUN ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime && \
|
||||
echo "Europe/Rome" > /etc/timezone
|
||||
|
||||
# The base image may include Docker's apt repository, but this image does not
|
||||
# install Docker packages. Disable it so apt updates do not fail on stale keys.
|
||||
# The base image may include third-party apt repositories, but this image only
|
||||
# needs Debian packages. Disable inherited repos so stale keys cannot break apt.
|
||||
RUN rm -f /etc/apt/sources.list.d/docker.list \
|
||||
/etc/apt/sources.list.d/download_docker_com_linux_debian.list
|
||||
/etc/apt/sources.list.d/download_docker_com_linux_debian.list \
|
||||
/etc/apt/sources.list.d/nodesource.list \
|
||||
/etc/apt/sources.list.d/nodesource.list.save
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
@@ -37,7 +39,8 @@ RUN apt-get update && \
|
||||
&& sed -i 's/# it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/' /etc/locale.gen \
|
||||
&& locale-gen it_IT.UTF-8 \
|
||||
&& update-locale LANG=it_IT.UTF-8 LC_ALL=it_IT.UTF-8 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
|
||||
|
||||
|
||||
# --- Install Microsoft core fonts (Arial, Times New Roman, Courier New, etc.) ---
|
||||
@@ -46,8 +49,7 @@ RUN set -eux; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
fontconfig \
|
||||
cabextract \
|
||||
xfonts-utils \
|
||||
gnupg; \
|
||||
xfonts-utils; \
|
||||
\
|
||||
sed -i 's/ main$/ main contrib/g' /etc/apt/sources.list; \
|
||||
apt-get update; \
|
||||
@@ -56,7 +58,8 @@ RUN set -eux; \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ttf-mscorefonts-installer; \
|
||||
\
|
||||
fc-cache -f -v; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user