backend-php (latest)

Published 2024-06-28 01:10:06 +00:00 by kakious

Installation

docker pull git.kakio.us/kakious/backend-php:latest
sha256:7ae415f28ae13c18ee8b76981251d5bb70c8d7d6565760a91562f0a36bc56223

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:140fb5108b4a2861b5718ad03b4a5174bba03589ea8d4c053e6a0b282f439ff3 in /
CMD ["/bin/bash"]
RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install --yes bash build-essential ca-certificates curl htop locales man python3 python3-pip software-properties-common sudo systemd systemd-sysv unzip vim wget && add-apt-repository ppa:git-core/ppa && DEBIAN_FRONTEND="noninteractive" apt-get install --yes git # buildkit
RUN /bin/sh -c useradd coder --create-home --shell=/bin/bash --uid=1001 --user-group && echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd # buildkit
USER coder
USER root
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get update # buildkit
RUN /bin/sh -c mkdir -p /data # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server # buildkit
RUN /bin/sh -c mv /var/lib/mysql /data/mysql # buildkit
RUN /bin/sh -c echo "datadir = /data/mysql" >> /etc/mysql/mysql.conf.d/mysqld.cnf # buildkit
RUN /bin/sh -c usermod -a -G coder mysql # buildkit
RUN /bin/sh -c ln -s /data/mysql /var/lib/mysql # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y redis-server # buildkit
RUN /bin/sh -c wget https://redismodules.s3.amazonaws.com/rejson/rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip # buildkit
RUN /bin/sh -c unzip rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip # buildkit
RUN /bin/sh -c mkdir -p /usr/lib/redis/modules # buildkit
RUN /bin/sh -c cp rejson.so /usr/lib/redis/modules/rejson.so # buildkit
RUN /bin/sh -c rm rejson.Linux-ubuntu20.04-x86_64.2.4.5.zip && rm rejson.so # buildkit
RUN /bin/sh -c echo "loadmodule /usr/lib/redis/modules/rejson.so" >> /etc/redis/redis.conf # buildkit
RUN /bin/sh -c apt install -y rabbitmq-server # buildkit
RUN /bin/sh -c ln -s /data/rabbitmq /var/lib/rabbitmq # buildkit
RUN /bin/sh -c sudo usermod -d /data/mysql/ mysql # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" add-apt-repository ppa:ondrej/php -y # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get update # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y php8.2 php8.2-cli php8.2-bz2 php8.2-curl php8.2-mbstring php8.2-intl php8.2-apcu php8.2-redis php8.2-fpm # buildkit
RUN /bin/sh -c curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # buildkit
RUN /bin/sh -c sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/8.2/fpm/php.ini # buildkit
RUN /bin/sh -c sed -i 's/;apc.enable_cli=0/apc.enable_cli=1/g' /etc/php/8.2/fpm/php.ini # buildkit
RUN /bin/sh -c DEBIAN_FRONTEND="noninteractive" apt-get install -y nginx # buildkit
RUN /bin/sh -c rm /etc/nginx/sites-enabled/default # buildkit
RUN /bin/sh -c wget https://git.kakio.us/furality/coder-templates/raw/branch/main/scripts/fox-api/nginx-php.sh -O /home/coder/nginx.sh # buildkit
RUN /bin/sh -c chmod +x /home/coder/nginx.sh # buildkit
RUN /bin/sh -c /home/coder/nginx.sh # buildkit
RUN /bin/sh -c rm /home/coder/nginx.sh # buildkit
CMD ["/bin/sh" "-c" "service mysql start && service redis-server start && service rabbitmq-server start && service php8.2-fpm start && service nginx start"]
USER coder

Labels

Key Value
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
Details
Container
2024-06-28 01:10:06 +00:00
0
OCI / Docker
linux/amd64
399 MiB
Versions (1) View all
latest 2024-06-28