30 lines
1.4 KiB
Docker
30 lines
1.4 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libaio1 libaudit1 libc6 libcap-ng0 libcrypt1 libgcc-s1 libicu67 liblzma5 libncurses6 libpam0g libssl1.1 libstdc++6 libtinfo6 libxml2 procps psmisc tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.4.3-150" --checksum ef1f6d1ca9e4873f82cf5037078b55524596ca2755262948f23571767bfd4101
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mariadb" "10.5.16-150" --checksum 9abd6dd68d74592e9222babc8f7920501c19e074221966d9af796ea08bdb5414
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-151" --checksum 089bb11a3bc6031c5a91ab5f9534e9e7e41b928d10d72a3986f16bb61d3a9900
|
|
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 mkdir /docker-entrypoint-initdb.d
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/mariadb/postunpack.sh
|
|
ENV APP_VERSION="10.5.16" \
|
|
BITNAMI_APP_NAME="mariadb" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/mariadb/bin:/opt/bitnami/mariadb/sbin:$PATH"
|
|
|
|
EXPOSE 3306
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/mariadb/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/mariadb/run.sh" ]
|