From: Peter Dave Hello <hsu@peterdavehello.org>
Date: Mon, 26 Jun 2023 09:59:02 +0000 (+0800)
Subject: Leave no apk cache in Docker image (#3327)
X-Git-Url: http://these/git/readmes/%24%7B%60data:application/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=2f3d60a63b3d88ec78eec75b6f6ec740ebb9f15c;p=lemmy.git

Leave no apk cache in Docker image (#3327)
---

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 5943e171..01052751 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -29,7 +29,7 @@ RUN \
 FROM alpine:3 as lemmy
 
 # Install libpq for postgres
-RUN apk add libpq
+RUN apk add --no-cache libpq
 
 # Copy resources
 COPY --from=builder /app/lemmy_server /app/lemmy