Fix Dockerfile: restore \ continuation and run archivebox version as non-root

- Add missing backslash on line 383 that caused Docker build parse failure
  (the linter removed the \ continuation character, breaking the RUN instruction)
- Use gosu to run archivebox version as the archivebox user since
  ArchiveBox refuses to run as root

https://claude.ai/code/session_01X2H7XLawCzLGnrxMArXtVZ
This commit is contained in:
Claude
2026-03-15 02:44:45 +00:00
parent 2f200f6bf2
commit 37b8a011db

View File

@@ -380,8 +380,8 @@ RUN (echo -e "\n\n[√] Finished Docker build succesfully. Saving build summary
) | tee -a /VERSION.txt ) | tee -a /VERSION.txt
# Verify ArchiveBox is installed and print version info # Verify ArchiveBox is installed and print version info
RUN chmod +x "$CODE_DIR"/bin/*.sh RUN chmod +x "$CODE_DIR"/bin/*.sh \
&& (archivebox version 2>&1 | tee -a /VERSION.txt || true) && gosu "$DEFAULT_PUID" archivebox version 2>&1 | tee -a /VERSION.txt || true
#################################################### ####################################################