From 3957cb8738298af43de4d826ad7bd6a502acee3e Mon Sep 17 00:00:00 2001 From: Yax Date: Wed, 2 Apr 2025 18:40:49 +0200 Subject: [PATCH] Reduce docker image --- Dockerfile | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4387f60..bdab7ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,12 @@ FROM nginx:1.27.4-alpine-slim -RUN apk update -RUN apk add --no-cache build-base bash git python3 make tzdata curl py3-pip libressl-dev musl-dev libffi-dev python3-dev cargo - -RUN curl -LsSf https://astral.sh/uv/install.sh | sh -RUN mv /root/.local/bin/uv /usr/local/bin -RUN mv /root/.local/bin/uvx /usr/local/bin +RUN apk update && apk add --no-cache bash git python3 make tzdata curl py3-pip musl-locales +RUN curl -LsSf https://astral.sh/uv/install.sh | sh && mv /root/.local/bin/uv /usr/local/bin COPY docker/nginx.conf /etc/nginx/nginx.conf -# install locales -ENV MUSL_LOCALE_DEPS cmake make musl-dev gcc gettext-dev libintl -ENV MUSL_LOCPATH /usr/share/i18n/locales/musl - -RUN apk add --no-cache \ - $MUSL_LOCALE_DEPS \ - && wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \ - && unzip musl-locales-master.zip \ - && cd musl-locales-master \ - && cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \ - && cd .. && rm -r musl-locales-master - # set timezone and locale -RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime -RUN echo "Europe/Paris" > /etc/timezone +RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo "Europe/Paris" > /etc/timezone ENV TZ Europe/Paris ENV LANG fr_FR.UTF-8 ENV LANGUAGE fr_FR.UTF-8