Skip to content

Dockerfile base image has outdated GLIBC #173

@fkmiec

Description

@fkmiec

While I was able to build the docker image, when running it failed stating that msgvault requires GLIBC_2.38, which is newer than available in debian12-based debian:bookworm-slim image.

My workaround:

I modified the Dockerfile to use wolfi-base with newer GLIBC. It now runs and the container image is substantially smaller, but I have not otherwise tested. For the record, I've annotated below the changes required to use the wolfi-base image.

FROM chainguard/wolfi-base:latest    <-- wolfi image

# Install runtime dependencies (libstdc++6 required for CGO/DuckDB)
RUN apk update && apk add \     <-- Use apk package manager
    ca-certificates \
    tzdata \
    wget \
    libstdc++ \   <-- apk expects this name for libstdc++6
    && rm -rf /var/lib/apt/lists/*

# Create non-root user
RUN adduser -D -h /home/msgvault -u 1000 -s /bin/sh msgvault    <-- different syntax for adding non-root user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions