Sign inSign up
ghost logo

ghost:6.52-alpine3.23

Multi-platform
Also known as:
6-alpine
6-alpine3.23
6.52-alpine
6.52.1-alpine
6.52.1-alpine3.23
alpine
alpine3.23
Content management system
Index digest

sha256:471756274a224437d983ba0abd882d9bd735de33a3a44a9338596ebb2f206f6b

OS/ARCH

Compressed size

247.73 MB

Last pushed

3 months by doijanky

Type

Image

Vulnerabilities

10
92
93
10
10

Manifest digest

sha256:cce68a11c22e309e29c15a0af3f639c4c276f43cbbb4613443ab16d3567c2f35

Layers (25)

node:8048c75d0f9921609e87851f82e9d7ae5397397266e30b38797d7f9b37cd6949
3
20
14
1
10
ghost:6.52-alpine3.23
8
81
85
9
0

9

RUN /bin/sh -c apk add --no-cache bash # buildkit

891.28 KB


10

ENV GOSU_VERSION=1.19

0 B


11

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

858.09 KB


12

ENV NODE_ENV=production

0 B


13

ENV GHOST_CLI_VERSION=1.29.3

0 B


14

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

14.45 MB


15

ENV GHOST_INSTALL=/var/lib/ghost

0 B


16

ENV GHOST_CONTENT=/var/lib/ghost/content

0 B


17

ENV GHOST_VERSION=6.52.1

0 B


18

RUN /bin/sh -c set -eux; mkdir -p "$GHOST_INSTALL"; chown node:node "$GHOST_INSTALL"; apk add --no-cache --virtual .build-deps-ghost g++ linux-headers make python3 py3-setuptools; 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"; apk del --no-network .build-deps-ghost; 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

185.45 MB


19

WORKDIR /var/lib/ghost

32 B


20

VOLUME [/var/lib/ghost/content]

0 B


21

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

544 B


22

ENTRYPOINT ["docker-entrypoint.sh"]

0 B


23

EXPOSE map[2368/tcp:{}]

0 B


24

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

0 B