Skip to content

Commit 4a1e7fa

Browse files
committed
Shrink the Docker image
1 parent 3318c57 commit 4a1e7fa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@ FROM node:20-slim
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
libvips \
5-
libjpeg62-turbo \
6-
libpng-dev \
75
libwebp-dev \
8-
libtiff-dev \
9-
libgif-dev \
10-
libssl-dev \
6+
libpng-dev \
7+
libjpeg-dev \
118
libzstd1 \
129
&& rm -rf /var/lib/apt/lists/*
1310

1411
WORKDIR /usr/src/app
1512

1613
COPY package.json /usr/src/app
1714

18-
RUN npm install --omit=dev
15+
RUN npm install --ignore-scripts --omit=dev
1916

2017
COPY . /usr/src/app
2118

0 commit comments

Comments
 (0)