Skip to content
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

Node 20 (Iron) and libvips-dev #414

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
19 changes: 10 additions & 9 deletions 5/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://docs.ghost.org/faq/node-versions/
# https://github.com/nodejs/Release (looking for "LTS")
FROM node:18-bookworm-slim
FROM node:iron-bookworm-slim

# grab gosu for easy step-down from root
# https://github.com/tianon/gosu/releases
Expand Down Expand Up @@ -43,7 +43,7 @@ RUN set -eux; \
ENV GHOST_INSTALL /var/lib/ghost
ENV GHOST_CONTENT /var/lib/ghost/content

ENV GHOST_VERSION 5.82.2
ENV GHOST_VERSION 5.82.10

RUN set -eux; \
mkdir -p "$GHOST_INSTALL"; \
Expand All @@ -55,8 +55,8 @@ RUN set -eux; \
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; \
apt update; \
apt install -y --no-install-recommends --no-install-suggests libvips-dev g++ make python3 ; \
eval "$installCmd"; \
fi; \
\
Expand Down Expand Up @@ -94,11 +94,12 @@ RUN set -eux; \
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; \
apt update; \
apt 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 ;; \
# Debian Bookworm is capable now 😄
sharp@*) apt install -y --no-install-recommends --no-install-suggests 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"; \
Expand All @@ -108,7 +109,7 @@ RUN set -eux; \
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 purge -y --auto-remove; \
rm -rf /var/lib/apt/lists/*; \
fi; \
\
Expand Down
Loading