mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 13:38:33 +03:00
speeding up make prod
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
VERSION = "0.12.10"
|
VERSION = "0.12.11"
|
||||||
|
|
||||||
API_DESCRIPTION = """
|
API_DESCRIPTION = """
|
||||||
#### API for the Auto-Archiver project, a tool to archive web pages and Google Sheets.
|
#### API for the Auto-Archiver project, a tool to archive web pages and Google Sheets.
|
||||||
|
|||||||
@@ -38,9 +38,10 @@ COPY ../../user-groups.* ./app/
|
|||||||
# - /crawls: named volume for Browsertrix WACZ crawl data
|
# - /crawls: named volume for Browsertrix WACZ crawl data
|
||||||
# - /aa-api: WORKDIR, auto-archiver creates TemporaryDirectory(dir="./") here
|
# - /aa-api: WORKDIR, auto-archiver creates TemporaryDirectory(dir="./") here
|
||||||
# - /aa-api/logs, /aa-api/database, /aa-api/secrets: bind-mounted at runtime
|
# - /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 && \
|
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
|
# Switch back to non-root user
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|||||||
Reference in New Issue
Block a user