mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
Merge pull request #810 from MODSetter/dev
feat: add shared temporary directory for file uploads in Dockerfile
This commit is contained in:
commit
f5cede64be
1 changed files with 6 additions and 0 deletions
|
|
@ -70,6 +70,12 @@ COPY . .
|
||||||
COPY scripts/docker/entrypoint.sh /app/scripts/docker/entrypoint.sh
|
COPY scripts/docker/entrypoint.sh /app/scripts/docker/entrypoint.sh
|
||||||
RUN dos2unix /app/scripts/docker/entrypoint.sh && chmod +x /app/scripts/docker/entrypoint.sh
|
RUN dos2unix /app/scripts/docker/entrypoint.sh && chmod +x /app/scripts/docker/entrypoint.sh
|
||||||
|
|
||||||
|
# Shared temp directory for file uploads between API and Worker containers.
|
||||||
|
# Python's tempfile module uses TMPDIR, so uploaded files land here.
|
||||||
|
# Mount the SAME volume at /shared_tmp on both API and Worker in Coolify.
|
||||||
|
RUN mkdir -p /shared_tmp
|
||||||
|
ENV TMPDIR=/shared_tmp
|
||||||
|
|
||||||
# Prevent uvloop compatibility issues
|
# Prevent uvloop compatibility issues
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
ENV UVICORN_LOOP=asyncio
|
ENV UVICORN_LOOP=asyncio
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue