feat: add shared temporary directory for file uploads in Dockerfile

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-02-10 22:57:56 -08:00
parent 25f9e9c74b
commit c662bb90cb

View file

@ -70,6 +70,12 @@ COPY . .
COPY scripts/docker/entrypoint.sh /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
ENV PYTHONPATH=/app
ENV UVICORN_LOOP=asyncio