UPD: upgraded to alpine 3.16

This commit is contained in:
xpk 2022-05-24 23:36:14 +08:00
parent 4a1bf0d612
commit 04d465a11d
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86
10 changed files with 27 additions and 14 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.16
LABEL description="Dante socks5 server" LABEL description="Dante socks5 server"
LABEL maintainer="racken@one27.cf" LABEL maintainer="racken@one27.cf"
ENV container docker ENV container docker

View File

@ -1,2 +1,2 @@
docker rm -f privoxy docker rm -f sockd
./start.sh ./start.sh

View File

@ -1,9 +1,9 @@
FROM alpine:latest FROM alpine:3.16
ENV container docker ENV container docker
RUN apk update; apk upgrade; apk add php8-gd php8-session php8-json php8-fpm php8-mysqlnd php8-mysqli php8-mbstring php8-xml php8-redis php8-curl php8-gmp bash php8-pdo_mysql php8-zip php8-dom php8-xmlwriter php8-xmlreader php8-ctype php8-simplexml php8-intl php8-iconv redis supervisor php8-opcache php8-posix php8-fileinfo php8-pecl-imagick php8-bcmath php8-pcntl php8-cli RUN apk update; apk upgrade; apk add php81-gd php81-session php81-json php81-fpm php81-mysqlnd php81-mysqli php81-mbstring php81-xml php81-redis php81-curl php81-gmp bash php81-pdo_mysql php81-zip php81-dom php81-xmlwriter php81-xmlreader php81-ctype php81-simplexml php81-intl php81-iconv redis supervisor php81-opcache php81-posix php81-fileinfo php81-pecl-imagick php81-bcmath php81-pcntl php81-cli
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
COPY fpm-www.conf /etc/php8/php-fpm.d/www.conf COPY fpm-www.conf /etc/php81/php-fpm.d/www.conf
RUN sed -i -e 's/^disable_functions.*/disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,eval,base64_decode/g' -e 's/^expose_php.*/expose_php=off/g' -e 's/^memory_limit.*/memory_limit=512M/g' -e 's/^session.save_handler.*/session.save_handler=redis/g' /etc/php8/php.ini RUN sed -i -e 's/^disable_functions.*/disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,eval,base64_decode/g' -e 's/^expose_php.*/expose_php=off/g' -e 's/^memory_limit.*/memory_limit=512M/g' -e 's/^session.save_handler.*/session.save_handler=redis/g' /etc/php81/php.ini
RUN echo 'session.save_path = "tcp://192.168.86.212:6379"' >> /etc/php8/php.ini RUN echo 'session.save_path = "tcp://192.168.86.212:6379"' >> /etc/php81/php.ini
EXPOSE 9000 EXPOSE 9000
CMD ["/usr/bin/supervisord", "-n"] CMD ["/usr/bin/supervisord", "-n"]

View File

@ -0,0 +1,9 @@
FROM alpine:3.16
ENV container docker
RUN apk update; apk upgrade; apk add php81-gd php81-session php81-json php81-fpm php81-mysqlnd php81-mysqli php81-mbstring php81-xml php81-redis php81-curl php81-gmp bash php81-pdo_mysql php81-zip php81-dom php81-xmlwriter php81-xmlreader php81-ctype php81-simplexml php81-intl php81-iconv redis supervisor php81-opcache php81-posix php81-fileinfo php81-pecl-imagick php81-bcmath php81-pcntl php81-cli
COPY supervisord.conf /etc/supervisord.conf
COPY fpm-www.conf /etc/php81/php-fpm.d/www.conf
RUN sed -i -e 's/^disable_functions.*/disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,eval,base64_decode/g' -e 's/^expose_php.*/expose_php=off/g' -e 's/^memory_limit.*/memory_limit=512M/g' -e 's/^session.save_handler.*/session.save_handler=redis/g' /etc/php81/php.ini
RUN echo 'session.save_path = "tcp://192.168.86.212:6379"' >> /etc/php81/php.ini
EXPOSE 9000
CMD ["/usr/bin/supervisord", "-n"]

View File

@ -19,6 +19,6 @@ stderr_logfile = /var/log/supervisord-redis.err
stdout_logfile = /var/log/supervisord-redis.log stdout_logfile = /var/log/supervisord-redis.log
[program:phpfpm] [program:phpfpm]
command=/usr/sbin/php-fpm8 -c /etc/php8/php-fpm.conf -F command=/usr/sbin/php-fpm81 -c /etc/php81/php-fpm.conf -F
stderr_logfile = /var/log/supervisord-fpm.err stderr_logfile = /var/log/supervisord-fpm.err
stdout_logfile = /var/log/supervisord-fpm.log stdout_logfile = /var/log/supervisord-fpm.log

View File

@ -1,4 +1,4 @@
FROM alpine FROM alpine:3.16
ENV container docker ENV container docker
RUN apk update; apk upgrade; apk add jq bash wget curl python3 sqlite RUN apk update; apk upgrade; apk add jq bash wget curl python3 sqlite
RUN wget -q -O- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-368.0.0-linux-x86_64.tar.gz | tar zxf - RUN wget -q -O- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-368.0.0-linux-x86_64.tar.gz | tar zxf -

View File

@ -1,3 +1,7 @@
# notes
There is no need to build your own image. Use the ones on docker hub. e.g. google/cloud-sdk:alpine
See https://hub.docker.com/r/google/cloud-sdk/
# usage # usage
gcloud init gcloud init

View File

@ -1,11 +1,11 @@
FROM alpine:latest FROM alpine:3.16
LABEL description="phpmyadmin on alpine" LABEL description="phpmyadmin on alpine"
LABEL maintainer="racken@one27.cf" LABEL maintainer="racken@one27.cf"
ENV container docker ENV container docker
RUN apk update; apk add bash tini php8-pdo_mysql php8-fpm nginx php8-session supervisor unzip php8-iconv php8-mysqli php8-xml php8-mbstring RUN apk update; apk add bash tini php81-pdo_mysql php81-fpm nginx php81-session supervisor unzip php81-iconv php81-mysqli php81-xml php81-mbstring
RUN mkdir -p /var/www/html /etc/supervisor.d RUN mkdir -p /var/www/html /etc/supervisor.d
COPY nginx-default.conf /etc/nginx/http.d/default.conf COPY nginx-default.conf /etc/nginx/http.d/default.conf
RUN wget -O /tmp/pma.zip https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.zip RUN wget -O /tmp/pma.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.zip
RUN unzip -qd /var/www/html /tmp/pma.zip; mv /var/www/html/phpMyAdmin* /var/www/html/pma; rm -f /tmp/pma.zip RUN unzip -qd /var/www/html /tmp/pma.zip; mv /var/www/html/phpMyAdmin* /var/www/html/pma; rm -f /tmp/pma.zip
COPY config.inc.php /var/www/html/pma/config.inc.php COPY config.inc.php /var/www/html/pma/config.inc.php
RUN mkdir -p /var/www/html/pma/tmp/; chmod 777 /var/www/html/pma/tmp/ RUN mkdir -p /var/www/html/pma/tmp/; chmod 777 /var/www/html/pma/tmp/

View File

@ -4,7 +4,7 @@ autostart=true
autorestart=true autorestart=true
[program:phpfpm] [program:phpfpm]
command=/usr/sbin/php-fpm8 -F command=/usr/sbin/php-fpm81 -F
autostart=true autostart=true
autorestart=true autorestart=true

View File

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.16
LABEL description="Redis for use with gitea" LABEL description="Redis for use with gitea"
LABEL maintainer="racken@one27.cf" LABEL maintainer="racken@one27.cf"
ENV container docker ENV container docker