mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
chore: update Docker configurations to streamline backend build and enhance E2E testing environment
This commit is contained in:
parent
efff7ab2a2
commit
242925d8e5
4 changed files with 18 additions and 4 deletions
|
|
@ -93,6 +93,9 @@ RUN printf '%s\n' \
|
|||
' pass' \
|
||||
| python || true
|
||||
|
||||
ARG EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
|
||||
RUN python -c "from chonkie import AutoEmbeddings; AutoEmbeddings.get_embeddings('${EMBEDDING_MODEL}')"
|
||||
|
||||
# Install Playwright browsers (the playwright python package itself is in deps)
|
||||
RUN playwright install chromium --with-deps
|
||||
|
||||
|
|
@ -104,6 +107,7 @@ RUN mkdir -p /shared_tmp
|
|||
ENV PYTHONPATH=/app
|
||||
ENV UVICORN_LOOP=asyncio
|
||||
ENV TMPDIR=/shared_tmp
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Tune glibc malloc to return freed memory to the OS more aggressively.
|
||||
# Without these, Python's gc.collect() frees objects but the underlying
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue