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
All checks were successful
build-and-push-ext / build_push (push) Successful in 15s
This commit is contained in:
parent
b0ab709d49
commit
a573c475f7
38
Dockerfile
38
Dockerfile
@ -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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user