mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 17:19:53 +02:00
try to ensure tmp is writable by archivebox user
This commit is contained in:
@@ -284,7 +284,8 @@ RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked,id=pip-$TARGETARCH
|
|||||||
|
|
||||||
# Setup ArchiveBox runtime config
|
# Setup ArchiveBox runtime config
|
||||||
WORKDIR "$DATA_DIR"
|
WORKDIR "$DATA_DIR"
|
||||||
RUN openssl rand -hex 16 > /etc/machine-id
|
RUN openssl rand -hex 16 > /etc/machine-id \
|
||||||
|
&& chown -R "$DEFAULT_PUID:$DEFAULT_PGID" "/tmp"
|
||||||
ENV IN_DOCKER=True \
|
ENV IN_DOCKER=True \
|
||||||
SYSTEM_LIB_DIR=/app/lib \
|
SYSTEM_LIB_DIR=/app/lib \
|
||||||
SYSTEM_TMP_DIR=/tmp \
|
SYSTEM_TMP_DIR=/tmp \
|
||||||
|
@@ -110,6 +110,10 @@ if [[ -d "$PLAYWRIGHT_BROWSERS_PATH/.links" ]]; then
|
|||||||
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
|
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# also chown tmp dir
|
||||||
|
mkdir -p /tmp/archivebox
|
||||||
|
chown $PUID:$PGID /tmp
|
||||||
|
chown $PUID:$PGID /tmp/archivebox
|
||||||
|
|
||||||
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
|
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
|
||||||
export IN_QEMU="$(pmap 1 | grep qemu >/dev/null && echo 'True' || echo 'False')"
|
export IN_QEMU="$(pmap 1 | grep qemu >/dev/null && echo 'True' || echo 'False')"
|
||||||
|
Reference in New Issue
Block a user