2024-10-16 14:19:12 UTC
141 MB
1.26.1
GHOST_CONTENT/var/lib/ghost/content
GHOST_INSTALL/var/lib/ghost
GHOST_VERSION5.96.2
GOSU_VERSION1.17
NODE_ENVproduction
NODE_VERSION18.20.4
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
YARN_VERSION1.22.19
[#000] sha256:94c7366c1c3058fbc60a5ea04b6d13199a592a67939a043c41c051c4bfcd117a - 2.32% (3.26 MB)
[#001] sha256:eb5fa6889f28fd528156e3fe0e0a254be528df1dad2e1d2d0ab8cf11131a073d - 27.03% (38 MB)
[#002] sha256:1a466315fb2612e923981687f8b8ceb89aa3831ce5224fd75351306a06c7a250 - 0.94% (1.32 MB)
[#003] sha256:3ceedeff43cf732f04ee25de7c5bd5c6e18ca1101e2cb89d3ec52e8a15731d2f - 0.0% (444 Bytes)
[#004] sha256:44df5bedc0cb6e972a3611f546aef81284bd506378531a6f70766db5f7ce6582 - 0.53% (758 KB)
[#005] sha256:e8059e2ef15a3d33c5cc0d198e6ccf7bd00c24b1ef38af2c55dc711cfd87bb23 - 0.76% (1.07 MB)
[#006] sha256:8e84f3d74265ca76c3e8dd28b5c145abbc7f5ea1f3d06d60a989c4b0ff2ff883 - 0.0% (174 Bytes)
[#007] sha256:71f170c6f8b40bf0792ac5674ba21ada955bb14df8dfc59df3699655be4c0743 - 7.37% (10.4 MB)
[#008] sha256:dc83680986413e618cd9af76da3e7c250b3f2c9a212264ea4c8f682dfa130dba - 61.05% (85.8 MB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:7198c60917fab32b8aee34d103af15b004b5a4e652fbdcdf319204ff600c99cd - 0.0% (547 Bytes)
/bin/sh -c #(nop) ADD file:9e193d6fff4bce11c0ee715ad87def9ef40e9608d4be84cf73391edd45b2810e in /
2024-07-09 05:33:43 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV NODE_VERSION=18.20.4
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libstdc++ && apk add --no-cache --virtual .build-deps curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' CHECKSUM="ac4fe3bef38d5e4ecf172b46c8af1f346904afd9788ce12919e3696f601e191e" OPENSSL_ARCH=linux-x86_64;; x86) OPENSSL_ARCH=linux-elf;; aarch64) OPENSSL_ARCH=linux-aarch64;; arm*) OPENSSL_ARCH=linux-armv4;; ppc64le) OPENSSL_ARCH=linux-ppc64le;; s390x) OPENSSL_ARCH=linux-s390x;; *) ;; esac && if [ -n "${CHECKSUM}" ]; then set -eu; curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc gnupg libgcc linux-headers make python3 py-setuptools && export GNUPGHOME="$(mktemp -d)" && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 74F12602B6F1C4E913FAA37AD3A89613643B6201 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 CC68F5A3106FF448322E48ED27F5E38D5B0A215F ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV YARN_VERSION=1.22.19
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)CMD ["node"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache bash # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+) # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV NODE_ENV=production
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CLI_VERSION=1.26.1
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_INSTALL=/var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CONTENT=/var/lib/ghost/content
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_VERSION=5.96.2
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; apkDel=; installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; if ! eval "$installCmd"; then virtual='.build-deps-ghost'; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" g++ linux-headers make python3; eval "$installCmd"; fi; cd "$GHOST_INSTALL"; gosu node ghost config --no-prompt --ip '::' --port 2368 --url 'http://localhost:2368'; gosu node ghost config paths.contentPath "$GHOST_CONTENT"; gosu node ln -s config.production.json "$GHOST_INSTALL/config.development.json"; readlink -f "$GHOST_INSTALL/config.development.json"; mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; mkdir -p "$GHOST_CONTENT"; chown node:node "$GHOST_CONTENT"; chmod 1777 "$GHOST_CONTENT"; cd "$GHOST_INSTALL/current"; packages="$(node -p ' var ghost = require("./package.json"); var transform = require("./node_modules/@tryghost/image-transform/package.json"); [ "sharp@" + transform.optionalDependencies["sharp"], "sqlite3@" + ghost.optionalDependencies["sqlite3"], ].join(" ") ')"; if echo "$packages" | grep 'undefined'; then exit 1; fi; for package in $packages; do installCmd='gosu node yarn add "$package" --force'; if ! eval "$installCmd"; then virtualPackages='g++ make python3'; case "$package" in sharp@*) echo >&2 "sorry: libvips 8.12.1 in Alpine 3.15 is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; esac; virtual=".build-deps-${package%%@*}"; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" $virtualPackages; eval "$installCmd --build-from-source"; fi; done; if [ -n "$apkDel" ]; then apk del --no-network $apkDel; fi; gosu node yarn cache clean; gosu node npm cache clean --force; npm cache clean --force; rm -rv /tmp/yarn* /tmp/v8* # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/ghost/content]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)EXPOSE map[2368/tcp:{}]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)CMD ["node" "current/index.js"]
2024-10-16 14:19:12 UTC
147 MB
1.26.1
GHOST_CONTENT/var/lib/ghost/content
GHOST_INSTALL/var/lib/ghost
GHOST_VERSION5.96.2
GOSU_VERSION1.17
NODE_ENVproduction
NODE_VERSION18.20.4
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
YARN_VERSION1.22.19
[#000] sha256:8922ced57063579c37aeb21c1c664433762d26f8051e187a63b559c21b36da53 - 2.06% (3.03 MB)
[#001] sha256:104b1ff41b89689262f8588b245bb78190b8a0c16c16c9daf3cebb351bccfdb3 - 24.94% (36.6 MB)
[#002] sha256:c4959454224b256e3ad89e9e437a96ca021ed6f390eb5ad33a272adafbb2857e - 0.9% (1.32 MB)
[#003] sha256:e0f02e22fa6268f811fb76b6926a490d125499f220d5a7385ac2399517457f49 - 0.0% (447 Bytes)
[#004] sha256:40680b97610532f1ca37d28c11bfaf7cb9abf82f7f7c24d7f700804314586c72 - 0.5% (750 KB)
[#005] sha256:7725ea60a425a96c96318772b1bf05da646a7064d297afa87dbc8f58ba5881e3 - 0.71% (1.04 MB)
[#006] sha256:a70a28d0e08d8b5b681d01d146e049dd8b78d5ad3e2837d766e18f8910c77476 - 0.0% (170 Bytes)
[#007] sha256:f1bf6e85286324b654be61b09098a1042e8f209a879bf1c64e4ddb451049e26b - 7.05% (10.4 MB)
[#008] sha256:cd4f7b47c08266846582420206abb6597777c2f0966b387cb9dfeaf40d705b63 - 63.85% (93.8 MB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:86003046f0844149c1a14bc5d44127507b1ab2795fe2105326732c7432be4d84 - 0.0% (545 Bytes)
/bin/sh -c #(nop) ADD file:87d4cb9e99b4a12939a030198a62d49f1c5b7856f27d62fea0e948cd2120d51d in /
2024-07-09 05:33:43 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV NODE_VERSION=18.20.4
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libstdc++ && apk add --no-cache --virtual .build-deps curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' CHECKSUM="ac4fe3bef38d5e4ecf172b46c8af1f346904afd9788ce12919e3696f601e191e" OPENSSL_ARCH=linux-x86_64;; x86) OPENSSL_ARCH=linux-elf;; aarch64) OPENSSL_ARCH=linux-aarch64;; arm*) OPENSSL_ARCH=linux-armv4;; ppc64le) OPENSSL_ARCH=linux-ppc64le;; s390x) OPENSSL_ARCH=linux-s390x;; *) ;; esac && if [ -n "${CHECKSUM}" ]; then set -eu; curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc gnupg libgcc linux-headers make python3 py-setuptools && export GNUPGHOME="$(mktemp -d)" && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 74F12602B6F1C4E913FAA37AD3A89613643B6201 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 CC68F5A3106FF448322E48ED27F5E38D5B0A215F ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV YARN_VERSION=1.22.19
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)CMD ["node"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache bash # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+) # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV NODE_ENV=production
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CLI_VERSION=1.26.1
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_INSTALL=/var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CONTENT=/var/lib/ghost/content
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_VERSION=5.96.2
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; apkDel=; installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; if ! eval "$installCmd"; then virtual='.build-deps-ghost'; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" g++ linux-headers make python3; eval "$installCmd"; fi; cd "$GHOST_INSTALL"; gosu node ghost config --no-prompt --ip '::' --port 2368 --url 'http://localhost:2368'; gosu node ghost config paths.contentPath "$GHOST_CONTENT"; gosu node ln -s config.production.json "$GHOST_INSTALL/config.development.json"; readlink -f "$GHOST_INSTALL/config.development.json"; mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; mkdir -p "$GHOST_CONTENT"; chown node:node "$GHOST_CONTENT"; chmod 1777 "$GHOST_CONTENT"; cd "$GHOST_INSTALL/current"; packages="$(node -p ' var ghost = require("./package.json"); var transform = require("./node_modules/@tryghost/image-transform/package.json"); [ "sharp@" + transform.optionalDependencies["sharp"], "sqlite3@" + ghost.optionalDependencies["sqlite3"], ].join(" ") ')"; if echo "$packages" | grep 'undefined'; then exit 1; fi; for package in $packages; do installCmd='gosu node yarn add "$package" --force'; if ! eval "$installCmd"; then virtualPackages='g++ make python3'; case "$package" in sharp@*) echo >&2 "sorry: libvips 8.12.1 in Alpine 3.15 is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; esac; virtual=".build-deps-${package%%@*}"; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" $virtualPackages; eval "$installCmd --build-from-source"; fi; done; if [ -n "$apkDel" ]; then apk del --no-network $apkDel; fi; gosu node yarn cache clean; gosu node npm cache clean --force; npm cache clean --force; rm -rv /tmp/yarn* /tmp/v8* # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/ghost/content]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)EXPOSE map[2368/tcp:{}]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)CMD ["node" "current/index.js"]
2024-10-16 14:19:12 UTC
146 MB
1.26.1
GHOST_CONTENT/var/lib/ghost/content
GHOST_INSTALL/var/lib/ghost
GHOST_VERSION5.96.2
GOSU_VERSION1.17
NODE_ENVproduction
NODE_VERSION18.20.4
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
YARN_VERSION1.22.19
[#000] sha256:426a5537ab470cede64a1b269dbc9f485fa674bec59555cdaa5a1c96e6675b0d - 1.91% (2.79 MB)
[#001] sha256:533550fe86a6b67962a386a3bcb6dacd01a0ece569024db3237a636e9fd560dc - 24.79% (36.2 MB)
[#002] sha256:d9dbf961e15bbd490960349ee83ec6f9ed91cfdbcff8486702cb71ce88dee9b6 - 0.9% (1.32 MB)
[#003] sha256:65d119284b0194114c441def36dffdf242f99ef680ccb28b62b0be8b54e28e0c - 0.0% (444 Bytes)
[#004] sha256:b9e0df348f8d8a63c0aa3e3c903e3e8d2b47ad3ed22fa26873e43f4b59eb10d1 - 0.46% (685 KB)
[#005] sha256:9706a6d81c33e5a28fde18100484d8f50d7a8739ea84f0946f424169efafc4e1 - 0.71% (1.04 MB)
[#006] sha256:c32e427acc0dd5b6182f6b5ab3165ab9f6a7b78778bb077f80eb92eedfda3ed3 - 0.0% (170 Bytes)
[#007] sha256:35ba8c8706c98baedd2e101ce98be3384372cccb36dc1d7f76ef10b0679b370e - 7.1% (10.4 MB)
[#008] sha256:211a0c0f916d5cfb07c0d90ad0154c296f1506bfaaf8eb495a2ca29372379d08 - 64.12% (93.5 MB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:732ee7b353bf7227d9a1f38e925a78bb8d5f9d25071bfedf3897077952556c3b - 0.0% (544 Bytes)
/bin/sh -c #(nop) ADD file:a0a04eec8c7b34f27431bfd6edc27b4c05f2174daf93e40c263717d2469dcebd in /
2024-07-09 05:33:43 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV NODE_VERSION=18.20.4
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libstdc++ && apk add --no-cache --virtual .build-deps curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' CHECKSUM="ac4fe3bef38d5e4ecf172b46c8af1f346904afd9788ce12919e3696f601e191e" OPENSSL_ARCH=linux-x86_64;; x86) OPENSSL_ARCH=linux-elf;; aarch64) OPENSSL_ARCH=linux-aarch64;; arm*) OPENSSL_ARCH=linux-armv4;; ppc64le) OPENSSL_ARCH=linux-ppc64le;; s390x) OPENSSL_ARCH=linux-s390x;; *) ;; esac && if [ -n "${CHECKSUM}" ]; then set -eu; curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc gnupg libgcc linux-headers make python3 py-setuptools && export GNUPGHOME="$(mktemp -d)" && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 74F12602B6F1C4E913FAA37AD3A89613643B6201 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 CC68F5A3106FF448322E48ED27F5E38D5B0A215F ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV YARN_VERSION=1.22.19
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)CMD ["node"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache bash # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+) # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV NODE_ENV=production
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CLI_VERSION=1.26.1
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_INSTALL=/var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CONTENT=/var/lib/ghost/content
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_VERSION=5.96.2
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; apkDel=; installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; if ! eval "$installCmd"; then virtual='.build-deps-ghost'; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" g++ linux-headers make python3; eval "$installCmd"; fi; cd "$GHOST_INSTALL"; gosu node ghost config --no-prompt --ip '::' --port 2368 --url 'http://localhost:2368'; gosu node ghost config paths.contentPath "$GHOST_CONTENT"; gosu node ln -s config.production.json "$GHOST_INSTALL/config.development.json"; readlink -f "$GHOST_INSTALL/config.development.json"; mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; mkdir -p "$GHOST_CONTENT"; chown node:node "$GHOST_CONTENT"; chmod 1777 "$GHOST_CONTENT"; cd "$GHOST_INSTALL/current"; packages="$(node -p ' var ghost = require("./package.json"); var transform = require("./node_modules/@tryghost/image-transform/package.json"); [ "sharp@" + transform.optionalDependencies["sharp"], "sqlite3@" + ghost.optionalDependencies["sqlite3"], ].join(" ") ')"; if echo "$packages" | grep 'undefined'; then exit 1; fi; for package in $packages; do installCmd='gosu node yarn add "$package" --force'; if ! eval "$installCmd"; then virtualPackages='g++ make python3'; case "$package" in sharp@*) echo >&2 "sorry: libvips 8.12.1 in Alpine 3.15 is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; esac; virtual=".build-deps-${package%%@*}"; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" $virtualPackages; eval "$installCmd --build-from-source"; fi; done; if [ -n "$apkDel" ]; then apk del --no-network $apkDel; fi; gosu node yarn cache clean; gosu node npm cache clean --force; npm cache clean --force; rm -rv /tmp/yarn* /tmp/v8* # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/ghost/content]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)EXPOSE map[2368/tcp:{}]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)CMD ["node" "current/index.js"]
2024-10-16 14:19:12 UTC
159 MB
1.26.1
GHOST_CONTENT/var/lib/ghost/content
GHOST_INSTALL/var/lib/ghost
GHOST_VERSION5.96.2
GOSU_VERSION1.17
NODE_ENVproduction
NODE_VERSION18.20.4
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
YARN_VERSION1.22.19
[#000] sha256:188a7166e45935ced07634efdc8e63c13f5f7673b60b051b353475ee00e28fe0 - 2.01% (3.2 MB)
[#001] sha256:977fb22222d09c03bb9af4878caea5b80f7e0fcfcce4b571670fac87d5eeeb0a - 23.67% (37.7 MB)
[#002] sha256:b06bae4ce73dffe95558039a913bc68e99ac09e33310294fdf1816669403fbb4 - 0.83% (1.32 MB)
[#003] sha256:34547485a12657cd5f8d0eb0e298d473be57651f97ffb7e0b79467eb6c7ca6f1 - 0.0% (443 Bytes)
[#004] sha256:9292a9275cc1fbd2b075567da960d64f77e4a9a7981ae528d6a8cf67b9c72abd - 0.51% (833 KB)
[#005] sha256:9fd6fa99804430144f844f1df4501c3f39b3f5e868168b8d4ef8bd693f002cbf - 0.63% (1 MB)
[#006] sha256:d21c424136e4907fa2d8aa16542fc04af7f35e91d2fc786a547ea107b98cb361 - 0.0% (178 Bytes)
[#007] sha256:0f1029ea0e5efb7c7748ac3e70dcc6b962a00b244270f76da2f1eb4180a418cc - 6.51% (10.4 MB)
[#008] sha256:ac0161a8757791e854a4d4f49ae1e441b367b4b506bcd0038825ea1367d1bfd0 - 65.84% (105 MB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:5776641e49167cd643577ecac4366076359cb45aea2d784ffadad5a85ccba1b4 - 0.0% (542 Bytes)
/bin/sh -c #(nop) ADD file:9865d69f45511580cc2a05d8a9573251b6eb5a84520efe2e8295532e3ccd6321 in /
2024-07-09 05:33:43 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV NODE_VERSION=18.20.4
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libstdc++ && apk add --no-cache --virtual .build-deps curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' CHECKSUM="ac4fe3bef38d5e4ecf172b46c8af1f346904afd9788ce12919e3696f601e191e" OPENSSL_ARCH=linux-x86_64;; x86) OPENSSL_ARCH=linux-elf;; aarch64) OPENSSL_ARCH=linux-aarch64;; arm*) OPENSSL_ARCH=linux-armv4;; ppc64le) OPENSSL_ARCH=linux-ppc64le;; s390x) OPENSSL_ARCH=linux-s390x;; *) ;; esac && if [ -n "${CHECKSUM}" ]; then set -eu; curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc gnupg libgcc linux-headers make python3 py-setuptools && export GNUPGHOME="$(mktemp -d)" && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 74F12602B6F1C4E913FAA37AD3A89613643B6201 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 CC68F5A3106FF448322E48ED27F5E38D5B0A215F ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENV YARN_VERSION=1.22.19
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-07-09 05:33:43 UTC (buildkit.dockerfile.v0)CMD ["node"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache bash # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+) # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV NODE_ENV=production
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CLI_VERSION=1.26.1
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_INSTALL=/var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_CONTENT=/var/lib/ghost/content
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENV GHOST_VERSION=5.96.2
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; apkDel=; installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; if ! eval "$installCmd"; then virtual='.build-deps-ghost'; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" g++ linux-headers make python3; eval "$installCmd"; fi; cd "$GHOST_INSTALL"; gosu node ghost config --no-prompt --ip '::' --port 2368 --url 'http://localhost:2368'; gosu node ghost config paths.contentPath "$GHOST_CONTENT"; gosu node ln -s config.production.json "$GHOST_INSTALL/config.development.json"; readlink -f "$GHOST_INSTALL/config.development.json"; mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; mkdir -p "$GHOST_CONTENT"; chown node:node "$GHOST_CONTENT"; chmod 1777 "$GHOST_CONTENT"; cd "$GHOST_INSTALL/current"; packages="$(node -p ' var ghost = require("./package.json"); var transform = require("./node_modules/@tryghost/image-transform/package.json"); [ "sharp@" + transform.optionalDependencies["sharp"], "sqlite3@" + ghost.optionalDependencies["sqlite3"], ].join(" ") ')"; if echo "$packages" | grep 'undefined'; then exit 1; fi; for package in $packages; do installCmd='gosu node yarn add "$package" --force'; if ! eval "$installCmd"; then virtualPackages='g++ make python3'; case "$package" in sharp@*) echo >&2 "sorry: libvips 8.12.1 in Alpine 3.15 is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; esac; virtual=".build-deps-${package%%@*}"; apkDel="$apkDel $virtual"; apk add --no-cache --virtual "$virtual" $virtualPackages; eval "$installCmd --build-from-source"; fi; done; if [ -n "$apkDel" ]; then apk del --no-network $apkDel; fi; gosu node yarn cache clean; gosu node npm cache clean --force; npm cache clean --force; rm -rv /tmp/yarn* /tmp/v8* # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/lib/ghost
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/ghost/content]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin # buildkit
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)EXPOSE map[2368/tcp:{}]
2024-10-16 14:19:12 UTC (buildkit.dockerfile.v0)CMD ["node" "current/index.js"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.