Skip to content

Commit 7d641b7

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 71c0300 + 60d4172 commit 7d641b7

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 v20 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
# Set the working directory
710
WORKDIR /app

0 commit comments

Comments
 (0)