mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix: remove unused go binaries from redis and postgresql images
Both binaries gosu and su-exec are not used in our entrypoints. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
f72ab28a41
commit
8027a7e5ec
2 changed files with 8 additions and 2 deletions
|
|
@ -32,7 +32,10 @@ RUN set -ex; \
|
|||
\
|
||||
# Give root a random password
|
||||
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
||||
apk --no-cache del openssl;
|
||||
apk --no-cache del openssl; \
|
||||
\
|
||||
# Get rid of unused binaries
|
||||
rm /usr/local/bin/gosu /usr/local/bin/su-exec;
|
||||
|
||||
VOLUME /mnt/data
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,10 @@ RUN set -ex; \
|
|||
apk add --no-cache openssl bash; \
|
||||
\
|
||||
# Give root a random password
|
||||
echo "root:$(openssl rand -base64 12)" | chpasswd
|
||||
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
||||
\
|
||||
# Get rid of unused binaries
|
||||
rm /usr/local/bin/gosu;
|
||||
|
||||
USER redis
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue