Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ RUN set -eux; \

ENV NODE_ENV production

RUN corepack enable

ENV GHOST_CLI_VERSION {{ .cli.version }}
RUN set -eux; \
npm install -g "ghost-cli@$GHOST_CLI_VERSION"; \
Expand Down Expand Up @@ -110,10 +112,10 @@ RUN set -eux; \
{{ clean_apt }}; \
{{ ) end -}}
\
gosu node yarn cache clean; \
gosu node pnpm store prune; \
gosu node npm cache clean --force; \
npm cache clean --force; \
rm -rv /tmp/yarn* /tmp/v8*; \
rm -rv /tmp/v8*; \
\
# test that the optional dependencies are installed and loadable
cd current; \
Expand Down
5 changes: 3 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ for version in "${versions[@]}"; do

# get a list of architectures supported by the sharp module's prebuilt libraries
# we cannot build it on other arches since the dep, libvips, is usually too old in Debian and Alpine
doc="$(curl -fsSL "https://raw.githubusercontent.com/TryGhost/Ghost/refs/tags/v$fullVersion/yarn.lock" \
doc="$(curl -fsSL "https://raw.githubusercontent.com/TryGhost/Ghost/refs/tags/v$fullVersion/pnpm-lock.yaml" \
| jq --compact-output --raw-input --null-input '
reduce (
inputs
| capture("^ *\"@img/sharp-(?<dist>linux[a-z]*)-(?<arch>[a-z0-9]+)\" \"[0-9.]+\"$")
| capture("^ *'"'"'@img/sharp-(?<dist>linux[a-z]*)-(?<arch>[a-z0-9]+)@[0-9.]+'"'"':")
) as $item ({
# this controls the variant ordering
linux: [], # non-Alpine first
linuxmusl: [], # Alpine second
}; .[$item.dist] += [ $item.arch ])
| map_values(unique)
| with_entries(
select(.value | length > 0)
| .key = {
Expand Down