Update mold in the Dockerfile to 2.3.2 (#2990)

* Update `mold` in the Dockerfile to 2.3.2

* Use absolute paths when creating `storage`/`snapshots` directories...

...for unpriveleged Docker container builds
This commit is contained in:
Roman Titov
2023-11-14 09:51:04 +01:00
committed by generall
parent 711e4ef16f
commit a32b128cea

View File

@@ -40,7 +40,7 @@ RUN apt-get update \
ARG BUILDPLATFORM
ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
ARG MOLD_VERSION=2.3.1
ARG MOLD_VERSION=2.3.2
RUN case "$BUILDPLATFORM" in \
*/amd64 ) PLATFORM=x86_64 ;; \
@@ -124,7 +124,7 @@ ARG USER_ID=0
RUN if [ "$USER_ID" != 0 ]; then \
groupadd --gid "$USER_ID" qdrant; \
useradd --uid "$USER_ID" --gid "$USER_ID" -m qdrant; \
mkdir -p snapshots storage; \
mkdir -p "$APP"/storage "$APP"/snapshots; \
chown -R "$USER_ID:$USER_ID" "$APP"; \
fi