-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All: upgrade alpine to 3.20, debian to bookworm, PHP to 8.3
- Loading branch information
Showing
8 changed files
with
140 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.20 | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
ENV ADMINER_DG_VERION=1.28.1 | ||
ENV ADMINER_DG_VERION=2.0.0 | ||
ENV MEMORY=256M | ||
ENV UPLOAD=2048M | ||
ENV WORKERS=4 | ||
ENV PHP_CLI_SERVER_WORKERS=${WORKERS} | ||
|
||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \ | ||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \ | ||
apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
wget \ | ||
ca-certificates \ | ||
php8@community \ | ||
php8-session@community \ | ||
php8-mysqli@community \ | ||
php8-pgsql@community \ | ||
php8-json@community \ | ||
php8-pecl-mongodb@community \ | ||
tini && \ | ||
wget \ | ||
ca-certificates \ | ||
php83@community \ | ||
php83-session@community \ | ||
php83-mysqli@community \ | ||
php83-pgsql@community \ | ||
php83-json@community \ | ||
php83-pecl-mongodb@community \ | ||
tini && \ | ||
wget https://github.com/dg/adminer-custom/archive/v$ADMINER_DG_VERION.tar.gz -O /srv/adminer.tgz && \ | ||
tar zxvf /srv/adminer.tgz --strip-components=1 -C /srv && \ | ||
rm /srv/adminer.tgz && \ | ||
ln -s /usr/bin/php8 /usr/bin/php && \ | ||
apk del wget ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /srv | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.20 | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -8,31 +8,35 @@ ENV UPLOAD=2048M | |
ENV WORKERS=4 | ||
ENV PHP_CLI_SERVER_WORKERS=${WORKERS} | ||
|
||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \ | ||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \ | ||
apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
wget \ | ||
ca-certificates \ | ||
php8@community \ | ||
php8-session@community \ | ||
php8-mysqli@community \ | ||
php8-pgsql@community \ | ||
php8-json@community \ | ||
php8-pecl-mongodb@community \ | ||
php83-session@community \ | ||
php83-mysqli@community \ | ||
php83-pgsql@community \ | ||
php83-json@community \ | ||
php83-pecl-mongodb@community \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_EDITOR_VERSION/editor-$ADMINER_EDITOR_VERSION.php -O /srv/index.php && \ | ||
ln -s /usr/bin/php8 /usr/bin/php && \ | ||
ln -s /usr/bin/php83 /usr/bin/php && \ | ||
apk del wget ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /srv | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.20 | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -8,18 +8,17 @@ ENV UPLOAD=2048M | |
ENV WORKERS=4 | ||
ENV PHP_CLI_SERVER_WORKERS=${WORKERS} | ||
|
||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \ | ||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \ | ||
apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
wget \ | ||
ca-certificates \ | ||
php8@community \ | ||
php8-session@community \ | ||
php8-mysqli@community \ | ||
php8-pgsql@community \ | ||
php8-json@community \ | ||
php8-pecl-mongodb@community \ | ||
php83-session@community \ | ||
php83-mysqli@community \ | ||
php83-pgsql@community \ | ||
php83-json@community \ | ||
php83-pecl-mongodb@community \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \ | ||
ln -s /usr/bin/php8 /usr/bin/php && \ | ||
|
@@ -30,9 +29,14 @@ WORKDIR /srv | |
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.20 | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -8,28 +8,32 @@ ENV UPLOAD=2048M | |
ENV WORKERS=4 | ||
ENV PHP_CLI_SERVER_WORKERS=${WORKERS} | ||
|
||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \ | ||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \ | ||
apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
wget \ | ||
ca-certificates \ | ||
php8@community \ | ||
php8-session@community \ | ||
php8-pecl-mongodb@community \ | ||
php83-session@community \ | ||
php83-pecl-mongodb@community \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \ | ||
ln -s /usr/bin/php8 /usr/bin/php && \ | ||
ln -s /usr/bin/php83 /usr/bin/php && \ | ||
apk del wget ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /srv | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.20 | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -8,28 +8,32 @@ ENV UPLOAD=2048M | |
ENV WORKERS=4 | ||
ENV PHP_CLI_SERVER_WORKERS=${WORKERS} | ||
|
||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \ | ||
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \ | ||
apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
wget \ | ||
ca-certificates \ | ||
php8@community \ | ||
php8-session@community \ | ||
php8-mysqli@community \ | ||
php83-session@community \ | ||
php83-mysqli@community \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \ | ||
ln -s /usr/bin/php8 /usr/bin/php && \ | ||
ln -s /usr/bin/php83 /usr/bin/php && \ | ||
apk del wget ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /srv | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM dockette/debian:buster | ||
FROM dockette/debian:bullseye | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -23,9 +23,9 @@ RUN apt-get update && \ | |
unzip \ | ||
libaio1 \ | ||
ca-certificates \ | ||
php8.0 \ | ||
php8.0-dev \ | ||
php8.0-xml \ | ||
php8.3 \ | ||
php8.3-dev \ | ||
php8.3-xml \ | ||
php-pear \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php | ||
|
@@ -38,7 +38,7 @@ RUN wget https://github.com/f00b4r/oracle-instantclient/raw/master/instantclient | |
ln -s /usr/local/instantclient_11_2 /usr/local/instantclient && \ | ||
ln -s /usr/local/instantclient/libclntsh.so.11.1 /usr/local/instantclient/libclntsh.so && \ | ||
echo 'instantclient,/usr/local/instantclient' | pecl install oci8 && \ | ||
echo "extension=oci8.so" > /etc/php/8.0/cli/conf.d/00-oci8.ini | ||
echo "extension=oci8.so" > /etc/php/8.3/cli/conf.d/00-oci8.ini | ||
|
||
# CLEAN UP ##################################################################### | ||
RUN apt-get clean -y && \ | ||
|
@@ -51,9 +51,14 @@ WORKDIR /srv | |
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM dockette/debian:buster | ||
FROM dockette/debian:bullseye | ||
|
||
LABEL maintainer="Milan Sulc <[email protected]>" | ||
|
||
|
@@ -23,9 +23,9 @@ RUN apt-get update && \ | |
unzip \ | ||
libaio1 \ | ||
ca-certificates \ | ||
php8.0 \ | ||
php8.0-dev \ | ||
php8.0-xml \ | ||
php8.3 \ | ||
php8.3-dev \ | ||
php8.3-xml \ | ||
php-pear \ | ||
tini && \ | ||
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php | ||
|
@@ -38,7 +38,7 @@ RUN wget https://github.com/f00b4r/oracle-instantclient/raw/master/instantclient | |
ln -s /usr/local/instantclient_12_1 /usr/local/instantclient && \ | ||
ln -s /usr/local/instantclient/libclntsh.so.12.1 /usr/local/instantclient/libclntsh.so && \ | ||
echo 'instantclient,/usr/local/instantclient' | pecl install oci8 && \ | ||
echo "extension=oci8.so" > /etc/php/8.0/cli/conf.d/00-oci8.ini | ||
echo "extension=oci8.so" > /etc/php/8.3/cli/conf.d/00-oci8.ini | ||
|
||
# CLEAN UP ##################################################################### | ||
RUN apt-get clean -y && \ | ||
|
@@ -51,9 +51,14 @@ WORKDIR /srv | |
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|
||
CMD /usr/bin/php \ | ||
-d memory_limit=$MEMORY \ | ||
-d upload_max_filesize=$UPLOAD \ | ||
-d post_max_size=$UPLOAD \ | ||
-S 0.0.0.0:80 | ||
CMD [\ | ||
"/usr/bin/php", \ | ||
"-d", \ | ||
"memory_limit=${MEMORY}", \ | ||
"-d", \ | ||
"upload_max_filesize=${UPLOAD}", \ | ||
"-d", \ | ||
"post_max_size=${UPLOAD}", \ | ||
"-S", \ | ||
"0.0.0.0:80" \ | ||
] |
Oops, something went wrong.