Skip to content

Commit 29ed565

Browse files
authored
Switch Phusion baseimage to Debian Trixie slim container (#42)
1 parent 6099310 commit 29ed565

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
FROM phusion/baseimage:jammy-1.0.4
1+
FROM debian:trixie-slim
22

33
# install system dependencies
44
RUN 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
1315
ENV PATH=/opt/openresty/nginx/sbin:$PATH
1416

1517
WORKDIR /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
7173
HEALTHCHECK --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"]

0 commit comments

Comments
 (0)