mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-14 17:50:21 +00:00
Merge pull request #7556 from nextcloud/enh/noid/del-openssl
redis and apache: delete openssl after using it
This commit is contained in:
commit
6e0569678d
2 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ RUN set -ex; \
|
||||||
chmod 777 -R /usr/local/apache2/logs; \
|
chmod 777 -R /usr/local/apache2/logs; \
|
||||||
rm -rf /usr/local/apache2/cgi-bin/; \
|
rm -rf /usr/local/apache2/cgi-bin/; \
|
||||||
\
|
\
|
||||||
echo "root:$(openssl rand -base64 12)" | chpasswd
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
||||||
|
apk --no-cache del openssl
|
||||||
|
|
||||||
USER 33
|
USER 33
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# Give root a random password
|
# Give root a random password
|
||||||
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
||||||
|
apk --no-cache del openssl; \
|
||||||
\
|
\
|
||||||
# Get rid of unused binaries
|
# Get rid of unused binaries
|
||||||
rm -f /usr/local/bin/gosu;
|
rm -f /usr/local/bin/gosu;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue