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:
26
base/baselinux/centos-6/Dockerfile
Normal file
26
base/baselinux/centos-6/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM centos:6
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY ./repo.list /etc/yum.repos.d/CentOS-Base.repo
|
||||
|
||||
RUN set -ex \
|
||||
&& yum -y install wget cronie gcc-c++ tcl \
|
||||
&& mkdir -p /usr/src/redis \
|
||||
&& wget -qO- http://download.redis.io/releases/redis-2.8.24.tar.gz | tar xz -C /usr/src/redis --strip-components=1 \
|
||||
&& cd /usr/src/redis \
|
||||
&& make MALLOC=libc \
|
||||
&& make install \
|
||||
&& make clean \
|
||||
&& cd / \
|
||||
&& rm -rf /usr/src/redis \
|
||||
&& yum -y remove gcc-c++ tcl
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
RUN set -ex \
|
||||
&& chmod +x /docker-entrypoint.sh
|
||||
|
||||
EXPOSE 6379
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["redis-server"]
|
Reference in New Issue
Block a user