mirror of
https://github.com/bitnami/containers.git
synced 2026-03-12 06:48:14 +08:00
34 lines
1.9 KiB
Docker
34 lines
1.9 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 curl gzip jq libaudit1 libbz2-1.0 libc6 libcap-ng0 libffi6 libgcc1 libicu63 libjemalloc2 liblzma5 libncurses6 libncursesw6 libpam0g libreadline7 libsqlite3-0 libssl1.1 libstdc++6 libtinfo6 libxml2 procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.8.12-38" --checksum 54bdd2c14565f9c0d5409717e25f8f007d0a003d3c3cc53a999841aef8c8ab50
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "node" "14.19.0-4" --checksum 0649af9ad2856d01d574146b62c840d3a330f2e85227a2ae73ec6500737ccccc
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.3.34-4" --checksum bb0089c26028b568dbe8b8875d39cca3c7835c582dda4fcbdcbed599320c57fe
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ghost" "4.37.0-1" --checksum 9f1719c1a5c15ad713e9caeb4dc4eb3d78994830d9b807ca674b3c1412c39502
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/ghost/postunpack.sh
|
|
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="ghost" \
|
|
BITNAMI_IMAGE_VERSION="4.37.0-debian-10-r10" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/node/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:/opt/bitnami/ghost/bin:$PATH"
|
|
|
|
EXPOSE 2368 3000
|
|
|
|
WORKDIR /opt/bitnami/ghost
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/ghost/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/ghost/run.sh" ]
|