File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM phusion/baseimage:jammy-1.0.4
1+ FROM debian:trixie-slim
22
33# install system dependencies
44RUN apt-get update \
55 && apt-get install --no-install-recommends -y \
6- libreadline-dev libncurses5-dev libpcre3-dev libssl-dev \
6+ ca-certificates curl \
7+ libreadline-dev libncurses5-dev libpcre2-dev libssl-dev \
78 build-essential git openssl \
89 luarocks unzip redis-server \
910 zlib1g-dev \
11+ runit \
1012 && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1113
12- ARG OPENRESTY_VER=1.27.1.2
14+ ARG OPENRESTY_VER=1.29.2.3
1315ENV PATH=/opt/openresty/nginx/sbin:$PATH
1416
1517WORKDIR /app
16- RUN wget "https://openresty.org/download/openresty-${OPENRESTY_VER}.tar.gz" \
18+ RUN curl -fL "https://openresty.org/download/openresty-${OPENRESTY_VER}.tar.gz" -o openresty-${OPENRESTY_VER}.tar.gz \
1719 && tar zxvf openresty-${OPENRESTY_VER}.tar.gz \
1820 && cd openresty-${OPENRESTY_VER} \
1921 && ./configure --prefix=/opt/openresty \
@@ -71,4 +73,4 @@ EXPOSE 7200
7173HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
7274 CMD /app/koreader-sync-server/scripts/healthcheck.sh
7375
74- CMD ["/sbin/my_init " ]
76+ CMD ["/usr/bin/runsvdir" , "-P" , "/etc/service " ]
You can’t perform that action at this time.
0 commit comments