Sign inSign up
ghost logo

ghost:6.53-bookworm

Multi-platform
Also known as:
6
6-bookworm
6.53
6.53.0
6.53.0-bookworm
bookworm
latest
Content management system
Index digest

sha256:94b71e5058d8d0adbb76267e007da09d049f00fe285a186fac2c5a5641e256e8

OS/ARCH

Compressed size

262.27 MB

Last pushed

3 months by doijanky

Type

Image

Vulnerabilities

12
93
100
45
14

Manifest digest

sha256:4395d5b8f43c4d6168fd465ad54be957d13aa0f53d56e7e52244861542633873

Layers (24)

node:e17fb835ac4bde77fa6ef373ed06e88092fa663e9f8d60b204eaa06a2ffba3a5
5
27
21
36
14
ghost:6.53-bookworm
8
75
85
9
0

9

ENV GOSU_VERSION=1.19

0 B


10

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates gnupg wget; 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; 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; gosu --version; gosu nobody true # buildkit

1.25 MB


11

ENV NODE_ENV=production

0 B


12

ENV GHOST_CLI_VERSION=1.30.0

0 B


13

RUN /bin/sh -c set -eux; corepack enable; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit

13.71 MB


14

ENV GHOST_INSTALL=/var/lib/ghost

0 B


15

ENV GHOST_CONTENT=/var/lib/ghost/content

0 B


16

ENV GHOST_VERSION=6.53.0

0 B


17

RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends g++ make python3; gosu node ghost install "$GHOST_VERSION" --db mysql --dbhost mysql --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; 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"; 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/*; gosu node pnpm store prune; gosu node npm cache clean --force; npm cache clean --force; cd current; gosu node node -e 'require("better-sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' # buildkit

180.16 MB


18

WORKDIR /var/lib/ghost

32 B


19

VOLUME [/var/lib/ghost/content]

0 B


20

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

542 B


21

ENTRYPOINT ["docker-entrypoint.sh"]

0 B


22

EXPOSE map[2368/tcp:{}]

0 B


23

CMD ["node" "current/index.js"]

0 B