ci: docker_tag=ext - Optimize Dockerfile to reduce image size (remove dev tools)
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 33s
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 33s
This commit is contained in:
parent
1542f0fe98
commit
662b04bfdd
39
Dockerfile
39
Dockerfile
@ -3,45 +3,10 @@
|
|||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Installation des dépendances nécessaires
|
# Installation des dépendances minimales nécessaires
|
||||||
RUN apk update && apk upgrade && apk add --no-cache \
|
RUN apk update && apk upgrade && apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
nginx \
|
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
|
||||||
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
|
|
||||||
|
|
||||||
# Copy project files
|
# Copy project files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user