first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
23
base/redis/5.0.7/Dockerfile
Normal file
23
base/redis/5.0.7/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends wget ca-certificates \
|
||||
&& apt-get install -y --no-install-recommends $(apt-cache depends redis-tools | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /tmp \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/universe/r/redis/redis-server_5.0.7-2_amd64.deb \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/universe/r/redis/redis-tools_5.0.7-2_amd64.deb \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/universe/r/redis/redis_5.0.7-2_all.deb \
|
||||
&& dpkg -i *.deb
|
||||
|
||||
RUN set -ex \
|
||||
&& sed -i 's/bind 127.0.0.1 ::1/bind 0.0.0.0/g' /etc/redis/redis.conf \
|
||||
&& sed -i 's/protected-mode yes/protected-mode no/g' /etc/redis/redis.conf \
|
||||
&& sed -i 's/daemonize yes/daemonize no/g' /etc/redis/redis.conf \
|
||||
&& sed -i 's|logfile .*|logfile /dev/stdout|g' /etc/redis/redis.conf
|
||||
|
||||
CMD ["redis-server", "/etc/redis/redis.conf"]
|
Reference in New Issue
Block a user