Skip to content

Commit 202d4dc

Browse files
authored
Merge pull request #203 from DefangLabs/jordan/apt-clean-after-install
consistenly clean up apt artifacts after apt-get install in slim images
2 parents 3bb8e5a + 1d0d7db commit 202d4dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Use the slim version of Node.js on Debian Bookworm as the base image
22
FROM node:20-bookworm-slim
33

4-
RUN apt-get update && apt-get install -y curl
4+
RUN apt-get update -qq \
5+
&& apt-get install -y curl \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/*
58

69
# Create app directory
710
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)