From 0bd5017ea07d955d554eb2c444093419f96d008c Mon Sep 17 00:00:00 2001 From: Dorch <14124454+DDorch@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:11:54 +0100 Subject: [PATCH] chore: update DockerFile --- Dockerfile | 96 +++++++++++++++++++++++++++--------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17f62bb53..c206b3cbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,62 +1,62 @@ -FROM debian:bullseye +FROM docker.io/node:18-bookworm-slim LABEL maintainer="bug@cassiopee.g-eau.fr" -LABEL version="3.0" +LABEL version="3.1" ENV DEBIAN_FRONTEND noninteractive -# base packages -RUN dpkg --add-architecture i386 \ - && apt-get update \ - && apt-get install -y \ - locales \ - curl \ - build-essential \ - wget \ - git \ - rsync - -# UTF-8 locale +# Install base packages +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + locales \ + curl \ + build-essential \ + wget \ + ca-certificates \ + gnupg \ + git \ + rsync \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Set UTF-8 locale RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ && locale-gen ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 -# LateX -RUN apt-get install -y texlive-lang-french texlive-xetex - -# setup nodejs repository (source.list) and install nodejs -RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \ - && apt-get update \ - && apt-get install -y \ - nodejs - -# python3 -RUN apt-get install -y \ - python3 \ - python3-pip \ - python3-setuptools \ - && python3 -m pip install mkdocs python-markdown-math mkdocs-material - -# chromium and procps (e2e) -RUN apt-get install -y chromium chromium-driver procps - -# pandoc & LaTeX for PDF doc -RUN apt-get install -y \ - pandoc \ - texlive \ - latexmk \ - texlive-latex-extra \ - texlive-bibtex-extra - -# wine -RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key \ - && apt-key add winehq.key \ - && echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" > /etc/apt/sources.list.d/winehq.list \ - && dpkg --add-architecture i386 \ - && apt-get update \ - && apt-get install -y --install-recommends winehq-stable +# Add Repositories + +## Wine +RUN dpkg --add-architecture i386 \ + && wget -nc https://dl.winehq.org/wine-builds/winehq.key \ + && apt-key add winehq.key \ + && echo "deb https://dl.winehq.org/wine-builds/debian/ bookworm main" > /etc/apt/sources.list.d/winehq.list + +# Install packages +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ +## MkDocs + mkdocs \ + python3-mdx-math \ + mkdocs-material-extensions \ +## Pandoc & LaTeX for PDF doc + pandoc \ + texlive \ + latexmk \ + texlive-latex-extra \ + texlive-bibtex-extra \ + texlive-lang-french \ + texlive-xetex \ +## Wine + winehq-stable \ +## chromium and procps (e2e) + chromium chromium-driver procps \ +## Clean cache + && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* WORKDIR /build -- GitLab