Skip to content

Commit

Permalink
Make Docker image slimer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Aug 5, 2024
1 parent 663ae01 commit 19b6282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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/*

Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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/*

Expand Down

0 comments on commit 19b6282

Please sign in to comment.