wiest-website (0.0.1)

Published 2022-09-30 16:51:01 +02:00 by Yonggan

Installation

docker pull git.obco.pro/yonggan/wiest-website:0.0.1
sha256:a5c295db71b156d760f3a198bef954fe1be411dcb7cb1f449dcdff8909bfa61c

Image layers

ADD file:5d673d25da3a14ce1f6cf66e4c7fd4f4b85a3759a9d93efb3fd9ff852b5b56e4 in /
CMD ["/bin/sh"]
ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
/bin/sh -c apk add --no-cache ca-certificates curl tar xz openssl
/bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data
ENV PHP_INI_DIR=/usr/local/etc/php
/bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD
ENV PHP_VERSION=8.1.8
ENV PHP_URL=https://www.php.net/distributions/php-8.1.8.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.8.tar.xz.asc
ENV PHP_SHA256=04c065515bc347bc68e0bb1ac7182669a98a731e4a17727e5731650ad3d8de4c
/bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apk del --no-network .fetch-deps
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
/bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
COPY multi:869bde9dbeae74886a05c9e2107b3e3b4877116db8c6d9adbaff2719f9fb5262 in /usr/local/bin/
/bin/sh -c docker-php-ext-enable sodium
ENTRYPOINT ["docker-php-entrypoint"]
WORKDIR /var/www/html
/bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; if we send this to /proc/self/fd/1, it never appears'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf
STOPSIGNAL SIGQUIT
EXPOSE 9000
CMD ["php-fpm"]
LABEL maintainer=Ric Harvey <ric@squarecows.com>
ENV php_conf=/usr/local/etc/php-fpm.conf
ENV fpm_conf=/usr/local/etc/php-fpm.d/www.conf
ENV php_vars=/usr/local/etc/php/conf.d/docker-vars.ini
ENV NGINX_VERSION=1.21.6
ENV LUA_MODULE_VERSION=0.10.14
ENV DEVEL_KIT_MODULE_VERSION=0.3.1
ENV GEOIP2_MODULE_VERSION=3.3
ENV LUAJIT_LIB=/usr/lib
ENV LUAJIT_INC=/usr/include/luajit-2.1
ENV LD_PRELOAD=/usr/lib/preloadable_libiconv.so php
RUN /bin/sh -c apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community gnu-libiconv # buildkit
RUN /bin/sh -c GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 && CONFIG=" --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_perl_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/usr/src/ngx_devel_kit-$DEVEL_KIT_MODULE_VERSION --add-module=/usr/src/lua-nginx-module-$LUA_MODULE_VERSION " && addgroup -S nginx && adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx && apk add --no-cache --virtual .build-deps autoconf gcc libc-dev make libressl-dev pcre-dev zlib-dev linux-headers curl gnupg libxslt-dev gd-dev libmaxminddb-dev perl-dev luajit-dev && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc && curl -fSL https://github.com/simpl/ngx_devel_kit/archive/v$DEVEL_KIT_MODULE_VERSION.tar.gz -o ndk.tar.gz && curl -fSL https://github.com/openresty/lua-nginx-module/archive/v$LUA_MODULE_VERSION.tar.gz -o lua.tar.gz && export GNUPGHOME="$(mktemp -d)" && found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "Fetching GPG key $GPG_KEYS from $server"; gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$GPG_KEYS" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $GPG_KEYS" && exit 1; gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && tar -zxC /usr/src -f ndk.tar.gz && tar -zxC /usr/src -f lua.tar.gz && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_http_perl_module-debug.so /usr/lib/nginx/modules/ngx_http_perl_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx* && strip /usr/lib/nginx/modules/*.so && rm -rf /usr/src/nginx-$NGINX_VERSION && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/*.so /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && mv /tmp/envsubst /usr/local/bin/ && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log # buildkit
RUN /bin/sh -c echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && echo /etc/apk/respositories && apk update && apk upgrade && apk add --no-cache bash openssh-client wget supervisor curl libcurl libpq git python3 py3-pip ca-certificates dialog autoconf make openssl-dev libressl-dev libzip-dev bzip2-dev icu-dev gcc && apk add --no-cache --virtual .sys-deps musl-dev linux-headers augeas-dev libmcrypt-dev libpng-dev libxslt-dev python3-dev libffi-dev freetype-dev sqlite-dev imap-dev libjpeg-turbo-dev postgresql-dev && docker-php-ext-install gd && docker-php-ext-configure gd --with-freetype --with-jpeg && pip install --upgrade pip && docker-php-ext-install pdo_mysql mysqli pdo_sqlite pgsql pdo_pgsql exif intl xsl soap zip && pecl install xdebug-3.1.4 && pecl install -o -f redis && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && docker-php-source delete && mkdir -p /etc/nginx && mkdir -p /var/www/app && mkdir -p /run/nginx && mkdir -p /var/log/supervisor && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && rm composer-setup.php && pip3 install -U certbot && mkdir -p /etc/letsencrypt/webrootauth && apk del gcc musl-dev linux-headers libffi-dev augeas-dev python3-dev make autoconf && apk del .sys-deps # buildkit
ADD conf/supervisord.conf /etc/supervisord.conf # buildkit
RUN /bin/sh -c rm -Rf /etc/nginx/nginx.conf # buildkit
ADD conf/nginx.conf /etc/nginx/nginx.conf # buildkit
RUN /bin/sh -c mkdir -p /etc/nginx/sites-available/ && mkdir -p /etc/nginx/sites-enabled/ && mkdir -p /etc/nginx/ssl/ && rm -Rf /var/www/* && mkdir /var/www/html/ # buildkit
ADD conf/nginx-site.conf /etc/nginx/sites-available/default.conf # buildkit
ADD conf/nginx-site-ssl.conf /etc/nginx/sites-available/default-ssl.conf # buildkit
RUN /bin/sh -c ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf # buildkit
RUN /bin/sh -c echo "cgi.fix_pathinfo=0" > ${php_vars} && echo "upload_max_filesize = 100M" >> ${php_vars} && echo "post_max_size = 100M" >> ${php_vars} && echo "variables_order = \"EGPCS\"" >> ${php_vars} && echo "memory_limit = 128M" >> ${php_vars} && sed -i -e "s/;catch_workers_output\s*=\s*yes/catch_workers_output = yes/g" -e "s/pm.max_children = 5/pm.max_children = 4/g" -e "s/pm.start_servers = 2/pm.start_servers = 3/g" -e "s/pm.min_spare_servers = 1/pm.min_spare_servers = 2/g" -e "s/pm.max_spare_servers = 3/pm.max_spare_servers = 4/g" -e "s/;pm.max_requests = 500/pm.max_requests = 200/g" -e "s/user = www-data/user = nginx/g" -e "s/group = www-data/group = nginx/g" -e "s/;listen.mode = 0660/listen.mode = 0666/g" -e "s/;listen.owner = www-data/listen.owner = nginx/g" -e "s/;listen.group = www-data/listen.group = nginx/g" -e "s/listen = 127.0.0.1:9000/listen = \/var\/run\/php-fpm.sock/g" -e "s/^;clear_env = no$/clear_env = no/" ${fpm_conf} # buildkit
RUN /bin/sh -c cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini && sed -i -e "s/;opcache/opcache/g" -e "s/;zend_extension=opcache/zend_extension=opcache/g" /usr/local/etc/php/php.ini # buildkit
ADD scripts/start.sh /start.sh # buildkit
ADD scripts/pull /usr/bin/pull # buildkit
ADD scripts/push /usr/bin/push # buildkit
ADD scripts/letsencrypt-setup /usr/bin/letsencrypt-setup # buildkit
ADD scripts/letsencrypt-renew /usr/bin/letsencrypt-renew # buildkit
RUN /bin/sh -c chmod 755 /usr/bin/pull && chmod 755 /usr/bin/push && chmod 755 /usr/bin/letsencrypt-setup && chmod 755 /usr/bin/letsencrypt-renew && chmod 755 /start.sh # buildkit
ADD src/ /var/www/html/ # buildkit
ADD errors/ /var/www/errors # buildkit
EXPOSE map[443/tcp:{} 80/tcp:{}]
WORKDIR /var/www/html
CMD ["/start.sh"]
WORKDIR /app
COPY dir:eb92a01519f55367eff33e5766af25059f564069826786336da84939d5f2341b in .
/bin/sh -c php artisan config:clear && php artisan cache:clear
/bin/sh -c chown www-data:www-data /app -R && chmod -R 775 /app
COPY file:06f4de582d8d56cfe7f2239f57992d98c2a05e1d48178861c30282c4c20e2c5b in /etc/nginx/sites-enabled/default.conf

Labels

Key Value
maintainer Ric Harvey <ric@squarecows.com>
Details
Container
2022-09-30 16:51:01 +02:00
11
OCI / Docker
linux/amd64
310 MiB
Versions (3) View all
0.0.3 2022-10-23
0.0.2 2022-09-30
0.0.1 2022-09-30