diff --git a/docker/Dockerfile b/docker/Dockerfile index 3b5f2f1bc4..f43a5889fd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,7 +11,7 @@ LABEL \ COPY qemu-* /usr/bin/ # System dependencies -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ tzdata \ nmap \ ffmpeg \ @@ -40,6 +40,7 @@ RUN apt-get update && apt-get install -y \ libffi-dev \ && npm ci --unsafe-perm --production \ && npm cache clean --force \ + && apt-get autoremove -y build-essential python3 python3-pip git libffi-dev \ && apt-get purge -y --auto-remove \ && rm -rf /var/lib/apt/lists/* diff --git a/docker/Dockerfile.buildx b/docker/Dockerfile.buildx index d4117cab81..deb8003599 100644 --- a/docker/Dockerfile.buildx +++ b/docker/Dockerfile.buildx @@ -12,7 +12,7 @@ COPY ./server/utils /json-files/server/utils FROM node:18-slim as gladys # System dependencies -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ tzdata \ nmap \ ffmpeg \ @@ -38,6 +38,7 @@ RUN apt-get update && apt-get install -y \ libffi-dev \ && npm ci --unsafe-perm --production \ && npm cache clean --force \ + && apt-get autoremove -y build-essential python3 python3-pip git libffi-dev \ && apt-get purge -y --auto-remove \ && rm -rf /var/lib/apt/lists/*