-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Update ghost #20211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update ghost #20211
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes: - docker-library/ghost@0be0e8e: Merge pull request docker-library/ghost#456 from infosiftr/jq-template - docker-library/ghost@98ead58: Add initial jq-based templating engine - docker-library/ghost@6c1aabe: Update to 6.6.0, ghost-cli 1.28.3
Diff for 073dbd2:diff --git a/_bashbrew-arches b/_bashbrew-arches
index 6e2b82c..e9dce7e 100644
--- a/_bashbrew-arches
+++ b/_bashbrew-arches
@@ -1,6 +1,4 @@
amd64
-arm32v6
arm32v7
arm64v8
-ppc64le
s390x
diff --git a/_bashbrew-cat b/_bashbrew-cat
index 53a704c..b368e70 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -1,22 +1,19 @@
Maintainers: Tianon Gravi <[email protected]> (@tianon), Joseph Ferguson <[email protected]> (@yosifkit), Austin Burdine <[email protected]> (@acburdine)
GitRepo: https://github.com/docker-library/ghost.git
+GitCommit: 98ead58b730477b94884db445c67f3251408cdc4
-Tags: 5.130.5, 5.130, 5
-Architectures: amd64, arm32v7, arm64v8, ppc64le, s390x
-GitCommit: fdba3d80f50da610007165f5fe46f9b8af69764b
-Directory: 5/debian
+Tags: 5.130.5-alpine3.22, 5.130.5-alpine, 5.130-alpine3.22, 5.130-alpine, 5-alpine3.22, 5-alpine
+Architectures: amd64, arm64v8
+Directory: 5/alpine3.22
-Tags: 5.130.5-alpine, 5.130-alpine, 5-alpine
-Architectures: amd64, arm32v6, arm32v7, arm64v8
-GitCommit: fdba3d80f50da610007165f5fe46f9b8af69764b
-Directory: 5/alpine
+Tags: 5.130.5-bookworm, 5.130.5, 5.130-bookworm, 5.130, 5-bookworm, 5
+Architectures: amd64, arm32v7, arm64v8, s390x
+Directory: 5/bookworm
-Tags: 6.5.3, 6.5, 6, latest
-Architectures: amd64, arm32v7, arm64v8, ppc64le, s390x
-GitCommit: 3a0fff73dd94321a446873efbb465b58893d4241
-Directory: 6/debian
+Tags: 6.6.0-alpine3.22, 6.6.0-alpine, 6.6-alpine3.22, 6.6-alpine, 6-alpine3.22, 6-alpine, alpine3.22, alpine
+Architectures: amd64, arm64v8
+Directory: 6/alpine3.22
-Tags: 6.5.3-alpine, 6.5-alpine, 6-alpine, alpine
-Architectures: amd64, arm32v6, arm32v7, arm64v8
-GitCommit: 3a0fff73dd94321a446873efbb465b58893d4241
-Directory: 6/alpine
+Tags: 6.6.0-bookworm, 6.6.0, 6.6-bookworm, 6.6, 6-bookworm, 6, bookworm, latest
+Architectures: amd64, arm32v7, arm64v8, s390x
+Directory: 6/bookworm
diff --git a/_bashbrew-list b/_bashbrew-list
index 0a2381e..485685e 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -1,14 +1,28 @@
ghost:5
ghost:5-alpine
+ghost:5-alpine3.22
+ghost:5-bookworm
ghost:5.130
ghost:5.130-alpine
+ghost:5.130-alpine3.22
+ghost:5.130-bookworm
ghost:5.130.5
ghost:5.130.5-alpine
+ghost:5.130.5-alpine3.22
+ghost:5.130.5-bookworm
ghost:6
ghost:6-alpine
-ghost:6.5
-ghost:6.5-alpine
-ghost:6.5.3
-ghost:6.5.3-alpine
+ghost:6-alpine3.22
+ghost:6-bookworm
+ghost:6.6
+ghost:6.6-alpine
+ghost:6.6-alpine3.22
+ghost:6.6-bookworm
+ghost:6.6.0
+ghost:6.6.0-alpine
+ghost:6.6.0-alpine3.22
+ghost:6.6.0-bookworm
ghost:alpine
+ghost:alpine3.22
+ghost:bookworm
ghost:latest
diff --git a/ghost_5-alpine/Dockerfile b/ghost_5-alpine/Dockerfile
index 355f2e9..80c9585 100644
--- a/ghost_5-alpine/Dockerfile
+++ b/ghost_5-alpine/Dockerfile
@@ -1,5 +1,9 @@
-# https://docs.ghost.org/faq/node-versions/
-# https://github.com/nodejs/Release (looking for "LTS")
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM node:20-alpine3.22
RUN apk add --no-cache \
@@ -35,7 +39,7 @@ RUN set -eux; \
# verify that the binary works
gosu --version; \
gosu nobody true
-RUN set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+)
+RUN set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility
ENV NODE_ENV production
@@ -53,15 +57,9 @@ RUN set -eux; \
mkdir -p "$GHOST_INSTALL"; \
chown node:node "$GHOST_INSTALL"; \
\
- apkDel=; \
+ apk add --no-cache --virtual .build-deps-ghost g++ linux-headers make python3 py3-setuptools; \
\
- 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; \
+ gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; \
\
# Tell Ghost to listen on all ips and not prompt for additional configuration
cd "$GHOST_INSTALL"; \
@@ -78,50 +76,21 @@ RUN set -eux; \
chown node:node "$GHOST_CONTENT"; \
chmod 1777 "$GHOST_CONTENT"; \
\
-# force install a few extra packages manually since they're "optional" dependencies
-# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)
-# see https://github.com/TryGhost/Ghost/pull/7677 for more details
- cd "$GHOST_INSTALL/current"; \
-# scrape the expected versions directly from Ghost/dependencies
- 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 \
-# must be some non-amd64 architecture pre-built binaries aren't published for, so let's install some build deps and do-it-all-over-again
- virtualPackages='g++ make python3 py3-setuptools'; \
- case "$package" in \
- # TODO sharp@*) virtualPackages="$virtualPackages pkgconf vips-dev"; \
- 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; \
+ apk del --no-network .build-deps-ghost; \
\
gosu node yarn cache clean; \
gosu node npm cache clean --force; \
npm cache clean --force; \
- rm -rv /tmp/yarn* /tmp/v8*
+ rm -rv /tmp/yarn* /tmp/v8*; \
+ \
+ # test that the optional dependencies are installed and loadable
+ cd current; \
+ gosu node node -e 'require("sqlite3"); require("sharp");'
WORKDIR $GHOST_INSTALL
VOLUME $GHOST_CONTENT
-COPY docker-entrypoint.sh /usr/local/bin
+COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 2368
diff --git a/ghost_5/Dockerfile b/ghost_5/Dockerfile
index 47ba9df..3b3b7f8 100644
--- a/ghost_5/Dockerfile
+++ b/ghost_5/Dockerfile
@@ -1,5 +1,9 @@
-# https://docs.ghost.org/faq/node-versions/
-# https://github.com/nodejs/Release (looking for "LTS")
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM node:20-bookworm-slim
# grab gosu for easy step-down from root
@@ -10,7 +14,6 @@ RUN set -eux; \
savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates gnupg wget; \
- rm -rf /var/lib/apt/lists/*; \
\
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"; \
@@ -27,6 +30,7 @@ RUN set -eux; \
apt-mark auto '.*' > /dev/null; \
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
+ rm -rf /var/lib/apt/lists/*; \
\
chmod +x /usr/local/bin/gosu; \
# verify that the binary works
@@ -50,15 +54,10 @@ RUN set -eux; \
chown node:node "$GHOST_INSTALL"; \
\
savedAptMark="$(apt-mark showmanual)"; \
- aptPurge=; \
- \
- installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; \
- if ! eval "$installCmd"; then \
- aptPurge=1; \
apt-get update; \
apt-get install -y --no-install-recommends g++ make python3; \
- eval "$installCmd"; \
- fi; \
+ \
+ gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; \
\
# Tell Ghost to listen on all ips and not prompt for additional configuration
cd "$GHOST_INSTALL"; \
@@ -75,52 +74,24 @@ RUN set -eux; \
chown node:node "$GHOST_CONTENT"; \
chmod 1777 "$GHOST_CONTENT"; \
\
-# force install a few extra packages manually since they're "optional" dependencies
-# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)
-# see https://github.com/TryGhost/Ghost/pull/7677 for more details
- cd "$GHOST_INSTALL/current"; \
-# scrape the expected versions directly from Ghost/dependencies
- 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 \
-# must be some non-amd64 architecture pre-built binaries aren't published for, so let's install some build deps and do-it-all-over-again
- aptPurge=1; \
- apt-get update; \
- apt-get install -y --no-install-recommends g++ make python3; \
- case "$package" in \
- # TODO sharp@*) apt-get install -y --no-install-recommends libvips-dev ;; \
- sharp@*) echo >&2 "sorry: libvips 8.10 in Debian bullseye is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; \
- esac; \
- \
- eval "$installCmd --build-from-source"; \
- fi; \
- done; \
- \
- if [ -n "$aptPurge" ]; then \
- apt-mark showmanual | xargs apt-mark auto > /dev/null; \
- [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
- apt-get purge -y --auto-remove; \
+ apt-mark auto '.*' > /dev/null; \
+ [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
+ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*; \
- fi; \
\
gosu node yarn cache clean; \
gosu node npm cache clean --force; \
npm cache clean --force; \
- rm -rv /tmp/yarn* /tmp/v8*
+ rm -rv /tmp/yarn* /tmp/v8*; \
+ \
+ # test that the optional dependencies are installed and loadable
+ cd current; \
+ gosu node node -e 'require("sqlite3"); require("sharp");'
WORKDIR $GHOST_INSTALL
VOLUME $GHOST_CONTENT
-COPY docker-entrypoint.sh /usr/local/bin
+COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 2368
diff --git a/ghost_alpine/Dockerfile b/ghost_alpine/Dockerfile
index 1b196c2..366a1c0 100644
--- a/ghost_alpine/Dockerfile
+++ b/ghost_alpine/Dockerfile
@@ -1,5 +1,9 @@
-# https://docs.ghost.org/faq/node-versions/
-# https://github.com/nodejs/Release (looking for "LTS")
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM node:22-alpine3.22
RUN apk add --no-cache \
@@ -35,7 +39,6 @@ RUN set -eux; \
# verify that the binary works
gosu --version; \
gosu nobody true
-RUN set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (TODO remove in Ghost 6+)
ENV NODE_ENV production
@@ -47,22 +50,15 @@ RUN set -eux; \
ENV GHOST_INSTALL /var/lib/ghost
ENV GHOST_CONTENT /var/lib/ghost/content
-ENV GHOST_VERSION 6.5.3
+ENV GHOST_VERSION 6.6.0
RUN set -eux; \
mkdir -p "$GHOST_INSTALL"; \
chown node:node "$GHOST_INSTALL"; \
\
- apkDel=; \
+ apk add --no-cache --virtual .build-deps-ghost g++ linux-headers make python3 py3-setuptools; \
\
- installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; \
- case "$GHOST_VERSION" in *-alpha* | *-beta* | *-rc*) installCmd="$installCmd --channel next" ;; esac; \
- 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; \
+ gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; \
\
# Tell Ghost to listen on all ips and not prompt for additional configuration
cd "$GHOST_INSTALL"; \
@@ -79,50 +75,21 @@ RUN set -eux; \
chown node:node "$GHOST_CONTENT"; \
chmod 1777 "$GHOST_CONTENT"; \
\
-# force install a few extra packages manually since they're "optional" dependencies
-# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)
-# see https://github.com/TryGhost/Ghost/pull/7677 for more details
- cd "$GHOST_INSTALL/current"; \
-# scrape the expected versions directly from Ghost/dependencies
- 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 \
-# must be some non-amd64 architecture pre-built binaries aren't published for, so let's install some build deps and do-it-all-over-again
- virtualPackages='g++ make python3 py3-setuptools'; \
- case "$package" in \
- # TODO sharp@*) virtualPackages="$virtualPackages pkgconf vips-dev"; \
- 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; \
+ apk del --no-network .build-deps-ghost; \
\
gosu node yarn cache clean; \
gosu node npm cache clean --force; \
npm cache clean --force; \
- rm -rv /tmp/yarn* /tmp/v8*
+ rm -rv /tmp/yarn* /tmp/v8*; \
+ \
+ # test that the optional dependencies are installed and loadable
+ cd current; \
+ gosu node node -e 'require("sqlite3"); require("sharp");'
WORKDIR $GHOST_INSTALL
VOLUME $GHOST_CONTENT
-COPY docker-entrypoint.sh /usr/local/bin
+COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 2368
diff --git a/ghost_latest/Dockerfile b/ghost_latest/Dockerfile
index 2bf9a1a..4a1d68c 100644
--- a/ghost_latest/Dockerfile
+++ b/ghost_latest/Dockerfile
@@ -1,5 +1,9 @@
-# https://docs.ghost.org/faq/node-versions/
-# https://github.com/nodejs/Release (looking for "LTS")
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM node:22-bookworm-slim
# grab gosu for easy step-down from root
@@ -10,7 +14,6 @@ RUN set -eux; \
savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates gnupg wget; \
- rm -rf /var/lib/apt/lists/*; \
\
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"; \
@@ -27,6 +30,7 @@ RUN set -eux; \
apt-mark auto '.*' > /dev/null; \
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
+ rm -rf /var/lib/apt/lists/*; \
\
chmod +x /usr/local/bin/gosu; \
# verify that the binary works
@@ -43,23 +47,17 @@ RUN set -eux; \
ENV GHOST_INSTALL /var/lib/ghost
ENV GHOST_CONTENT /var/lib/ghost/content
-ENV GHOST_VERSION 6.5.3
+ENV GHOST_VERSION 6.6.0
RUN set -eux; \
mkdir -p "$GHOST_INSTALL"; \
chown node:node "$GHOST_INSTALL"; \
\
savedAptMark="$(apt-mark showmanual)"; \
- aptPurge=; \
- \
- installCmd='gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"'; \
- case "$GHOST_VERSION" in *-alpha* | *-beta* | *-rc*) installCmd="$installCmd --channel next" ;; esac; \
- if ! eval "$installCmd"; then \
- aptPurge=1; \
apt-get update; \
apt-get install -y --no-install-recommends g++ make python3; \
- eval "$installCmd"; \
- fi; \
+ \
+ gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; \
\
# Tell Ghost to listen on all ips and not prompt for additional configuration
cd "$GHOST_INSTALL"; \
@@ -76,52 +74,24 @@ RUN set -eux; \
chown node:node "$GHOST_CONTENT"; \
chmod 1777 "$GHOST_CONTENT"; \
\
-# force install a few extra packages manually since they're "optional" dependencies
-# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)
-# see https://github.com/TryGhost/Ghost/pull/7677 for more details
- cd "$GHOST_INSTALL/current"; \
-# scrape the expected versions directly from Ghost/dependencies
- 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 \
-# must be some non-amd64 architecture pre-built binaries aren't published for, so let's install some build deps and do-it-all-over-again
- aptPurge=1; \
- apt-get update; \
- apt-get install -y --no-install-recommends g++ make python3; \
- case "$package" in \
- # TODO sharp@*) apt-get install -y --no-install-recommends libvips-dev ;; \
- sharp@*) echo >&2 "sorry: libvips 8.10 in Debian bullseye is not new enough (8.12.2+) for sharp 0.30 😞"; continue ;; \
- esac; \
- \
- eval "$installCmd --build-from-source"; \
- fi; \
- done; \
- \
- if [ -n "$aptPurge" ]; then \
- apt-mark showmanual | xargs apt-mark auto > /dev/null; \
- [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
- apt-get purge -y --auto-remove; \
+ apt-mark auto '.*' > /dev/null; \
+ [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
+ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*; \
- fi; \
\
gosu node yarn cache clean; \
gosu node npm cache clean --force; \
npm cache clean --force; \
- rm -rv /tmp/yarn* /tmp/v8*
+ rm -rv /tmp/yarn* /tmp/v8*; \
+ \
+ # test that the optional dependencies are installed and loadable
+ cd current; \
+ gosu node node -e 'require("sqlite3"); require("sharp");'
WORKDIR $GHOST_INSTALL
VOLUME $GHOST_CONTENT
-COPY docker-entrypoint.sh /usr/local/bin
+COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 2368Relevant Maintainers:
|
yosifkit
approved these changes
Nov 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes: