mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-08 22:57:55 +08:00
Merge pull request #2499 from nextcloud/redis-dockerfile
optimize redis Dockerfile
This commit is contained in:
commit
412da74702
1 changed files with 5 additions and 5 deletions
|
@ -1,13 +1,13 @@
|
||||||
# From https://github.com/docker-library/redis/blob/master/7.0/alpine/Dockerfile
|
# From https://github.com/docker-library/redis/blob/master/7.0/alpine/Dockerfile
|
||||||
FROM redis:7.0.11-alpine
|
FROM redis:7.0.11-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache openssl bash
|
COPY --chmod=775 start.sh /usr/bin/start.sh
|
||||||
|
|
||||||
COPY start.sh /usr/bin/
|
|
||||||
RUN chmod +x /usr/bin/start.sh
|
|
||||||
|
|
||||||
|
RUN set -ex; \
|
||||||
|
apk add --no-cache openssl bash; \
|
||||||
|
\
|
||||||
# Give root a random password
|
# Give root a random password
|
||||||
RUN echo "root:$(openssl rand -base64 12)" | chpasswd
|
echo "root:$(openssl rand -base64 12)" | chpasswd
|
||||||
|
|
||||||
USER redis
|
USER redis
|
||||||
ENTRYPOINT ["start.sh"]
|
ENTRYPOINT ["start.sh"]
|
||||||
|
|
Loading…
Reference in a new issue