ci: docker_tag=ext - Optimize Dockerfile to reduce image size (remove dev tools)
All checks were successful
build-and-push-ext / build_push (push) Successful in 15s

This commit is contained in:
dev4 2025-09-21 18:09:18 +00:00
parent b0ab709d49
commit a573c475f7

View File

@ -29,45 +29,11 @@ RUN npm prune --omit=dev && npm cache clean --force
FROM node:19-alpine
WORKDIR /app
# Installation des dépendances nécessaires
# Installation des dépendances minimales nécessaires
RUN apk update && apk upgrade && apk add --no-cache \
docker-cli \
git \
curl \
wget \
jq \
busybox-extras \
npm \
coreutils \
build-base \
autoconf \
automake \
libtool \
pkgconfig \
cmake \
ninja \
clang \
lldb \
lld \
make \
tree \
ncdu \
mc \
ctags \
vim \
emacs \
sed \
gawk \
iputils \
net-tools \
iproute2 \
python3 \
python3-dev \
py3-pip \
go \
rust \
cargo \
&& npm install -g wscat
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
# Création d'un utilisateur non-root
RUN adduser -D appuser --uid 10000 && \