sha256:cf1d38b036e17e9997b44617d6252a56f2fea371ec824a708238ef2470f92ec6
OS/ARCH
Compressed size
271.31 MB
Last pushed
3 months by doijanky
Type
Image
Vulnerabilities
Manifest digest
sha256:0c6132af68a8114561764bdc1a55affb7037135b502ccc6577057827e4610fef
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.21 MB
11
ENV NODE_ENV=production
0 B
12
ENV GHOST_CLI_VERSION=1.29.3
0 B
13
RUN /bin/sh -c set -eux; corepack enable; npm install -g "ghost-cli@$GHOST_CLI_VERSION"; npm cache clean --force # buildkit
14.45 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.52.1
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
198.54 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