speeding up make prod

This commit is contained in:
msramalho
2026-03-02 17:35:49 +00:00
parent adfb985d15
commit f0bb6c265d
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
VERSION = "0.12.10"
VERSION = "0.12.11"
API_DESCRIPTION = """
#### API for the Auto-Archiver project, a tool to archive web pages and Google Sheets.

View File

@@ -38,9 +38,10 @@ COPY ../../user-groups.* ./app/
# - /crawls: named volume for Browsertrix WACZ crawl data
# - /aa-api: WORKDIR, auto-archiver creates TemporaryDirectory(dir="./") here
# - /aa-api/logs, /aa-api/database, /aa-api/secrets: bind-mounted at runtime
# - /app/.venv: base image venv, seleniumbase downloads chromedriver here at runtime
# - seleniumbase drivers dir: chromedriver downloaded at runtime
RUN mkdir -p /crawls /aa-api/logs /aa-api/database /aa-api/secrets && \
chown -R 1000:1000 /crawls /aa-api /app/.venv
chown -R 1000:1000 /crawls /aa-api && \
chown -R 1000:1000 /app/.venv/lib/python3.12/site-packages/seleniumbase/drivers
# Switch back to non-root user
USER 1000