Skip to content

Commit

Permalink
Upgrade to Alpine 3.19
Browse files Browse the repository at this point in the history
php 8.2 for ruTorrent v4.2.9.
gcc 13.2 for the rTorrent packages
  • Loading branch information
stickz committed Dec 23, 2023
1 parent bbb3fbe commit 349ae90
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
52 changes: 26 additions & 26 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG GEOIP2_PHPEXT_VERSION=1.3.1
ARG RUTORRENT_VERSION=e7c81203eff5d43f6f2757ba4b05573d22f11e35
ARG GEOIP2_RUTORRENT_VERSION=4ff2bde530bb8eef13af84e4413cedea97eda148

ARG ALPINE_VERSION=3.18
ARG ALPINE_VERSION=3.19
ARG ALPINE_S6_VERSION=${ALPINE_VERSION}-2.2.0.3

FROM --platform=${BUILDPLATFORM} alpine:${ALPINE_VERSION} AS src
Expand Down Expand Up @@ -92,12 +92,14 @@ RUN apk --update --no-cache add \
openssl-dev \
patch \
pcre-dev \
php81-dev \
php81-pear \
php82-dev \
php82-pear \
tar \
tree \
xz \
zlib-dev

RUN gcc --version && g++ --version

ENV DIST_PATH="/dist"

Expand Down Expand Up @@ -171,13 +173,13 @@ WORKDIR /usr/local/src/geoip2-phpext
COPY --from=src-geoip2-phpext /src .
RUN <<EOT
set -e
phpize81
phpize82
./configure
make
make install
EOT
RUN mkdir -p ${DIST_PATH}/usr/lib/php81/modules
RUN cp -f /usr/lib/php81/modules/geoip.so ${DIST_PATH}/usr/lib/php81/modules/
RUN mkdir -p ${DIST_PATH}/usr/lib/php82/modules
RUN cp -f /usr/lib/php82/modules/geoip.so ${DIST_PATH}/usr/lib/php82/modules/
RUN tree ${DIST_PATH}

FROM crazymax/alpine-s6:${ALPINE_S6_VERSION}
Expand Down Expand Up @@ -218,23 +220,20 @@ RUN apk --update --no-cache add \
nginx-mod-http-dav-ext \
nginx-mod-http-geoip2 \
openssl \
php81 \
php81-bcmath \
php81-cli \
php81-ctype \
php81-curl \
php81-dom \
php81-fpm \
php81-json \
php81-mbstring \
php81-openssl \
php81-phar \
php81-posix \
php81-session \
php81-sockets \
php81-xml \
php81-zip \
php81-zlib \
php82 \
php82-bcmath \
php82-ctype \
php82-curl \
php82-dom \
php82-fpm \
php82-mbstring \
php82-openssl \
php82-phar \
php82-posix \
php82-session \
php82-sockets \
php82-xml \
php82-zip \
python3 \
py3-pip \
shadow \
Expand All @@ -243,9 +242,10 @@ RUN apk --update --no-cache add \
tzdata \
unzip \
util-linux \
zip \
&& pip3 install --upgrade pip \
&& pip3 install cfscrape cloudscraper \
zip

RUN pip3 install --upgrade --break-system-packages pip \
&& pip3 install --break-system-packages cfscrape cloudscraper \
&& addgroup -g ${PGID} rtorrent \
&& adduser -D -H -u ${PUID} -G rtorrent -s /bin/sh rtorrent \
&& curl --version \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/02-fix-perms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ chown -R rtorrent:rtorrent \
/var/cache/nginx \
/var/lib/nginx \
/var/log/nginx \
/var/log/php81 \
/var/log/php82 \
/var/run/nginx \
/var/run/php-fpm \
/var/run/rtorrent
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/04-create-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cat > /etc/services.d/php-fpm/run <<EOL
#!/usr/bin/execlineb -P
with-contenv
s6-setuidgid ${PUID}:${PGID}
php-fpm81 -F
php-fpm82 -F
EOL
chmod +x /etc/services.d/php-fpm/run

Expand Down

0 comments on commit 349ae90

Please sign in to comment.