| ADD file:a7268f82a86219801950401c224cabbdd83ef510a7c71396b25f70c2639ae4fa in / |
| CMD ["bash"] |
| ARG QEMU_ARCH |
| COPY . /bd_build # buildkit |
| RUN |1 QEMU_ARCH= /bin/sh -c /bd_build/prepare.sh && /bd_build/system_services.sh && /bd_build/utilities.sh && /bd_build/cleanup.sh # buildkit |
| ENV DEBIAN_FRONTEND=teletype LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
| CMD ["/sbin/my_init"] |
| CMD ["/bin/sh" "-c" "/sbin/my_init"] |
| EXPOSE map[443/tcp:{} 80/tcp:{}] |
| SHELL [/bin/bash -o pipefail -c] |
| RUN /bin/bash -o pipefail -c groupadd -g 2101 e4a && useradd -r -u 2101 -g e4a e4a && useradd -r -u 2102 -g e4a lico && groupadd -g 2103 redis && useradd -r -u 2103 -g redis redis && groupadd -g 2104 mysql && useradd -r -u 2104 -g mysql mysql && groupadd -g 2105 adsredir && useradd -r -u 2105 -g adsredir adsredir # buildkit |
| ARG PIP_VERSION |
| ENV DOCKERIZE_VERSION=0.19.0 GOSS_VERSION=0.3.23 GRPCURL_VERSION=1.8.7 LEGO_VERSION=4.13.3 MYSQLD_EXPORTER_VERSION=0.14.0 PIP_ROOT_USER_ACTION=ignore PIP_VERSION=22.1.2 STEP_VERSION=0.24.4 WAIT4X_VERSION=2.13.0 |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c rm -f /etc/apt/apt.conf.d/docker-clean && apt-get update && apt-get update -y && apt-get install -y --no-install-recommends software-properties-common && add-apt-repository -y ppa:deadsnakes/ppa && add-apt-repository -y ppa:ondrej/php && curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" > /etc/apt/sources.list.d/redis.list && apt-get update -y && apt-get -y dist-upgrade && apt-get install -y --no-install-recommends apg bind9-dnsutils binutils dotnet-runtime-7.0 gdb glibc-tools iputils-ping jq libarchive13 libev4 libfcgi-bin libgumbo1 libhiredis-dev libicu70 libnet-ssleay-perl libsasl2-modules libsodium23 libspf2-2 libsqlite3-0 libssl3 libz3-4 mailutils mariadb-server nano net-tools patch php7.4-bcmath php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-gmp php7.4-grpc php7.4-mbstring php7.4-mysql php7.4-soap php7.4-sqlite3 php7.4-xml php7.4-zip postfix prometheus-postfix-exporter pwgen python3.11 python3.11-distutils redis-server=6:6.2.11-1rl1~jammy1 redis-tools=6:6.2.11-1rl1~jammy1 redis=6:6.2.11-1rl1~jammy1 rsync sasl2-bin socat sqlite3 strace swaks tcpdump telnet tshark wget xz-utils zstd && apt-get satisfy "libc6 (>= 2.35-0ubuntu3.4)" && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql && chown -R mysql:mysql /var/lib/mysql && find /etc/mysql/ -name '*.cnf' -print0 | xargs -0 grep -lZE '^(bind-address|log|user\s)' | xargs -rt -0 sed -Ei 's/^(bind-address|log|user\s)/#&/' && echo -e "[mysqld]\nskip-host-cache\nskip-name-resolve" > /etc/mysql/conf.d/docker.cnf && postconf -e myhostname=changeme.exchange4all.local && rm /etc/postfix/makedefs.out && ln /usr/share/postfix/makedefs.out /etc/postfix/makedefs.out && usermod -a -G adm prometheus && usermod -a -G www-data e4a && useradd -g www-data --no-user-group --home-dir /storage/www --no-create-home --shell /usr/sbin/nologin --system caddy && rm -f /etc/logrotate.d/btmp /etc/logrotate.d/wtmp && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && curl -sS https://bootstrap.pypa.io/get-pip.py | python3 - pip==${PIP_VERSION} # buildkit |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c wget -c https://github.com/go-acme/lego/releases/download/v$LEGO_VERSION/lego_v"$LEGO_VERSION"_linux_amd64.tar.gz -O - | tar xz -C /usr/local/bin --wildcards "lego" && chown root:root /usr/local/bin/lego && wget https://github.com/smallstep/cli/releases/download/v"$STEP_VERSION"/step-cli_"$STEP_VERSION"_amd64.deb && dpkg -i step-cli_*_amd64.deb && rm step-cli_*_amd64.deb && curl -sfL https://github.com/powerman/dockerize/releases/download/v"$DOCKERIZE_VERSION"/dockerize-"$(uname -s)"-"$(uname -m)" | install /dev/stdin /usr/local/bin/dockerize && dockerize --version && wget -c https://github.com/atkrad/wait4x/releases/download/v"$WAIT4X_VERSION"/wait4x-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin --wildcards "wait4x" && wait4x version && curl -sfL https://github.com/goss-org/goss/releases/download/v$GOSS_VERSION/goss-linux-amd64 | install /dev/stdin /usr/local/bin/goss && goss --version && wget -c https://github.com/prometheus/mysqld_exporter/releases/download/v$MYSQLD_EXPORTER_VERSION/mysqld_exporter-$MYSQLD_EXPORTER_VERSION.linux-amd64.tar.gz -O - | tar xz --strip-components=1 -C /usr/local/bin --wildcards "*/mysqld_exporter" && chown root:root /usr/local/bin/mysqld_exporter && mysqld_exporter --version && wget -c https://github.com/fullstorydev/grpcurl/releases/download/v"$GRPCURL_VERSION"/grpcurl_"$GRPCURL_VERSION"_linux_x86_64.tar.gz -O - | tar xz -C /usr/local/bin --exclude=LICENSE && chown root:root /usr/local/bin/grpcurl && grpcurl --version # buildkit |
| COPY /usr/bin/yq /usr/bin/yq # buildkit |
| COPY rootfs / # buildkit |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c curl -o /usr/local/bin/mariadb-entrypoint.sh https://raw.githubusercontent.com/MariaDB/mariadb-docker/b1f92f6f41036992f932f339ba6074ab43809368/10.6/docker-entrypoint.sh && chmod +x /usr/local/bin/mariadb-entrypoint.sh && ln -sf $(which setuser) /usr/local/bin/gosu # buildkit |
| COPY /usr/local/lib/mariadb /opt/mariadb-connector-c # buildkit |
| COPY /usr/local/lib/libproxyprotocol.so* /usr/local/lib/ # buildkit |
| COPY /usr/local/share/doc/libproxyprotocol /usr/local/share/doc # buildkit |
| COPY /tmp/rtfpiper /usr/local/ # buildkit |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c ldconfig # buildkit |
| COPY /tmp/apisix.deb /tmp # buildkit |
| COPY /tmp/apisix-base.deb /tmp # buildkit |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c wget -qO- https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty.gpg && echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" >> /etc/apt/sources.list.d/openresty.list && apt-get update && apt-get install -y --no-install-recommends libldap2-dev /tmp/apisix-base.deb /tmp/apisix.deb && rm -rf /usr/local/apisix/conf/logs rm /tmp/apisix-base.deb /tmp/apisix.deb && sed -i 's|^pid .*$|pid /run/apisix/nginx-run/nginx.pid;|' /usr/local/apisix/apisix/cli/ngx_tpl.lua && mv /usr/local/apisix/conf/config.yaml /usr/local/apisix/conf/config.yaml.orig && ln -s /storage/apisix-config.yaml /usr/local/apisix/conf/config.yaml && ln -s /run/apisix/apisix-routes.yaml /usr/local/apisix/conf/apisix.yaml && ln -s /run/apisix/nginx-run/apisix.uid /usr/local/apisix/conf/apisix.uid && ln -s /run/apisix/nginx-run/nginx.conf /usr/local/apisix/conf/nginx.conf && patch -d /usr/local/apisix -T -p1 < /usr/local/apisix/apisix-error-500.patch && patch -d /usr/local/apisix -T -p1 < /usr/local/apisix/apisix-header.patch && patch -d /usr/local/apisix -T -p1 < /usr/local/apisix/apisix-stream-tls-settings.patch # buildkit |
| RUN |1 PIP_VERSION=22.1.2 /bin/bash -o pipefail -c mv /etc/crontab /etc/crontab.default && ln -sf /storage/crontab /etc/crontab && mkdir -p /storage/.mail && mv /var/mail /var/mail.default && ln -sf /storage/.mail /var/mail && tar -zcvf /var/.bootstrap-logs.tar.gz /var/log && mv /var/log /var/log.default && mkdir -p /storage/log/ && ln -sf /storage/log/ /var/ # buildkit |
| WORKDIR /opt/exchange4all |
| COPY /opt/exchange4all/manage-api/wheels/ /opt/exchange4all/manage-api/wheels/ # buildkit |
| RUN /bin/bash -o pipefail -c pip --disable-pip-version-check install /opt/exchange4all/manage-api/wheels/*.whl # buildkit |
| COPY /build / # buildkit |
| WORKDIR /opt/exchange4all |
| ENV ACMESERVER=staging DOMAINS= E4A_FORCE_DISPLUGIN= E4A_FORCE_ENPLUGIN= E4A_LICENSES_PATH=/storage/license/ E4A_LOG_LEVEL=4 E4A_LOG_PUT_SRC=1 E4A_LOG_PUT_TIME=0 E4A_LX_PATH=/storage/.e4a-lx E4AFQDN=exchange4all.local E4AMAILDOMAIN=exchange4all.local LEGO_PATH=/storage/.lego-tmp LIBSEGFAULT_ENABLED=false LIBSEGFAULT_SIGNALS=all MARIADB_AUTO_UPGRADE=true MARIADB_UNIX_PORT=/run/mysqld/mysqld.sock REDIS_URL=redis://127.0.0.1:6379/0 SVWAIT=30 ULIMIT_FRONTEND=65536 ULIMIT_GENERAL=8196 ULIMIT_IGNORE=false ULIMIT_NETWORKED=102400 |
| RUN /bin/bash -o pipefail -c rm /etc/php/7.4/fpm/pool.d/www.conf && rm /etc/cron.daily/apt-compat && ln -s /opt/exchange4all/system/bin/e4a /usr/local/bin/ && ln -sf /storage/tls /opt/exchange4all/tls && ln -sf /storage/www /opt/exchange4all/www && ln -sf /storage/config.yaml /opt/exchange4all/config/config.yaml && cat /etc/postfix/exchange4all-main.cf >> /etc/postfix/main.cf && postconf -n > /etc/postfix/main.cf-new 2>/dev/null && mv /etc/postfix/main.cf-new /etc/postfix/main.cf && postmap /etc/postfix/sub-addressing && mkdir -p /run/exchange4all/ /storage/ && cp /opt/exchange4all/config/config.yaml.in /storage/config.yaml && chown -R e4a:e4a /opt/exchange4all/.system-var /opt/exchange4all/.service-var && /opt/exchange4all/config/bin/e4a-config run confd-onetime && rm /var/lib/dbus/machine-id /etc/machine-id && ln -sf /storage/.machine-id /etc/machine-id && rm /storage/config.yaml # buildkit |
| VOLUME [/var/lib/mysql/ /storage/ /var/lib/php/sessions /var/mail] |
| HEALTHCHECK &{["CMD-SHELL" "/usr/local/bin/healthcheck.sh"] "0s" "0s" "0s" '\x00'} |
| ARG E4ACONFIG_VERSION |
| LABEL com.gitlab.exchange4all.config=1.4.1 |
| ARG E4AMANAGE_VERSION |
| LABEL com.gitlab.exchange4all.manage=0.18.0 |
| ARG E4AMANAGEAPI_VERSION |
| LABEL com.gitlab.exchange4all.manage-api=0.18.1 |
| ARG E4APHPMAPI_VERSION |
| LABEL com.gitlab.exchange4all.php-mapi=0.14.1 |
| ARG E4APUSH_VERSION |
| LABEL com.gitlab.exchange4all.push=0.12.0 |
| ARG E4APYTHONE4A_VERSION |
| LABEL com.gitlab.exchange4all.pythone4a=1.4.0 |
| ARG E4ASERVICE_VERSION |
| LABEL com.gitlab.exchange4all.service=1.4.1 |
| ARG E4ASYSTEM_VERSION |
| LABEL com.gitlab.exchange4all.system=1.8.0 |
| ARG E4AWEBAPP_VERSION |
| LABEL com.gitlab.exchange4all.webapp=6.19.3 |
| ARG E4AWEBAPPJODIT_VERSION |
| LABEL com.gitlab.exchange4all.webapp.jodit=0.11.0 |
| ARG LIBREGRAPHLICO_VERSION |
| LABEL com.gitlab.exchange4all.libregraph.lico=0.60.0 |
| ARG VCS_REF |
| LABEL org.opencontainers.image.revision=5785c44 |
| ARG VCS_VERSION |
| LABEL org.opencontainers.image.version=4.6.0 |
| COPY <<EOF /opt/exchange4all/.version # buildkit |
| COPY dir:db7434fccde599762a41cc9e4eadf8553456e88a719e32114649f42b01fd6ca0 in / |