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 5m45s

This commit is contained in:
4NK Dev 2025-09-21 18:08:59 +00:00
parent ec527c765e
commit b190edbf72

View File

@ -32,44 +32,11 @@ RUN wasm-pack build --out-dir ../sdk_signer/pkg --target nodejs --dev
FROM node:20-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 \
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/*
# Copie des fichiers du projet
COPY --from=wasm-builder /build/sdk_signer/pkg ./pkg