diff --git a/Containers/redis/Dockerfile b/Containers/redis/Dockerfile index 9720efab..b68d0569 100644 --- a/Containers/redis/Dockerfile +++ b/Containers/redis/Dockerfile @@ -1,13 +1,12 @@ # From https://github.com/docker-library/redis/blob/master/7.0/alpine/Dockerfile FROM redis:7.0.11-alpine -RUN apk add --no-cache openssl bash - -COPY start.sh /usr/bin/ -RUN chmod +x /usr/bin/start.sh +COPY --chmod=775 start.sh /usr/bin/start.sh +RUN apk add --no-cache openssl bash; \ + \ # Give root a random password -RUN echo "root:$(openssl rand -base64 12)" | chpasswd + echo "root:$(openssl rand -base64 12)" | chpasswd USER redis ENTRYPOINT ["start.sh"]