ghost/Dockerfile

23 lines
483 B
Docker
Raw Permalink Normal View History

2025-02-08 22:37:31 +01:00
ARG VERSION=5.109.2
ARG UID=200004
ARG GID=200004
2025-02-08 22:37:31 +01:00
FROM ghost:${VERSION}-alpine
LABEL maintainer="Lukas Raub titanz@pm.me"
ARG UID
ARG GID
RUN apk -U upgrade \
&& apk add libstdc++ shadow
RUN --network=none \
addgroup -g ${GID} ghost \
&& adduser -g ${GID} --ingroup ghost --disabled-password --system ghost
USER ghost
COPY --from=git.conorz.at/titanz-containers/hardened_malloc:latest /install /usr/local/lib/
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"