新增nginx-openjdk-redis5
This commit is contained in:
parent
506f6500d5
commit
d1849f29ad
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
# nginx-openjdk8-redis5:1.0
|
||||
|
||||
- 基于nginx-openjdk:1.0
|
||||
- 编译安装redis5.0.14
|
|
@ -0,0 +1,2 @@
|
|||
/usr/local/bin/redis-server --daemonize yes
|
||||
nginx -g 'daemon off;'
|
Loading…
Reference in New Issue