新增nginx-openjdk-redis5

This commit is contained in:
fastjrun 2022-01-07 19:42:54 +08:00
parent 506f6500d5
commit d1849f29ad
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,14 @@
FROM pi4k8s/nginx-openjdk8:1.0
COPY entrypoint.sh /opt/entrypoint.sh
RUN apt update \
&& apt install -y gcc make \
&& cd /opt && wget -q https://download.redis.io/releases/redis-5.0.14.tar.gz \
&& tar -zxf redis-5.0.14.tar.gz \
&& cd redis-5.0.14/src \
&& make install \
&& cd /opt && rm -rf redis* \
&& chmod a+x /opt/entrypoint.sh
ENTRYPOINT /opt/entrypoint.sh

View File

@ -0,0 +1,4 @@
# nginx-openjdk8-redis5:1.0
- 基于nginx-openjdk:1.0
- 编译安装redis5.0.14

View File

@ -0,0 +1,2 @@
/usr/local/bin/redis-server --daemonize yes
nginx -g 'daemon off;'