42 lines
3.2 KiB
Docker
42 lines
3.2 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates cron curl gzip libaudit1 libbsd0 libbz2-1.0 libc6 libcap-ng0 libcom-err2 libcurl4 libexpat1 libffi6 libfftw3-double3 libfontconfig1 libfreetype6 libgcc1 libgcrypt20 libglib2.0-0 libgmp10 libgnutls30 libgomp1 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu63 libidn2-0 libjpeg62-turbo libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2 libldap-2.4-2 liblqr-1-0 libltdl7 liblzma5 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmemcached11 libmemcachedutil2 libncurses6 libnettle6 libnghttp2-14 libonig5 libp11-kit0 libpam0g libpcre3 libpng16-16 libpq5 libpsl5 libreadline7 librtmp1 libsasl2-2 libsodium23 libsqlite3-0 libssh2-1 libssl1.1 libstdc++6 libsybdb5 libtasn1-6 libtidy5deb1 libtinfo6 libunistring2 libuuid1 libwebp6 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxslt1.1 libzip4 procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "php" "8.1.6-0" --checksum 5a54f59880dd5071417843344c77792edfe1bddbd6768520eb00a19aa26cc771
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "apache" "2.4.53-0" --checksum 716e4948a2c40f0a0cc5b1656052aeef916a79152250b0b6c1392dd1187f575a
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.3-0" --checksum 0603c8eaf6d24e76563431e36e512da06bfebb3a06ede31b3e84d9879213c162
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.6.8-0" --checksum a288a3866c8d3b06951b6781c79a6e3551e99c159aafa1d3dfcaa3e54db93ea7
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "libphp" "8.1.6-0" --checksum 12c6e7c45d7fe2595a54ede9af3c7899a90daf779103450191e7dc880206c21d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.3-0" --checksum af5ec81cfb8e8420fe6af80a77d40da25e0f7e136abb6dde27267c97fb27cf8b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "magento" "2.4.4-0" --checksum 7f91a6f37cc1531669714eaf13e4cc18d7311717d14258b28b04672bb1141279
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN sed -i -e '/pam_loginuid.so/ s/^#*/#/' /etc/pam.d/cron
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/apache/postunpack.sh
|
|
RUN /opt/bitnami/scripts/php/postunpack.sh
|
|
RUN /opt/bitnami/scripts/apache-modphp/postunpack.sh
|
|
RUN /opt/bitnami/scripts/magento/postunpack.sh
|
|
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
|
ENV APACHE_HTTPS_PORT_NUMBER="" \
|
|
APACHE_HTTP_PORT_NUMBER="" \
|
|
APP_VERSION="2.4.4" \
|
|
BITNAMI_APP_NAME="magento" \
|
|
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/common/bin:/opt/bitnami/mysql/bin:/opt/bitnami/magento/bin:$PATH"
|
|
|
|
EXPOSE 8080 8443
|
|
|
|
USER root
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/magento/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/magento/run.sh" ]
|