fix: reduced docker size by 67%

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-10-23 15:49:16 -07:00
parent aed8163aee
commit 590baff093
3 changed files with 75 additions and 37 deletions

View file

@ -63,10 +63,14 @@ RUN pip install playwright && \
# Copy source code
COPY . .
# Copy and set permissions for entrypoint script
COPY scripts/docker/entrypoint.sh /app/scripts/docker/entrypoint.sh
RUN chmod +x /app/scripts/docker/entrypoint.sh
# Prevent uvloop compatibility issues
ENV PYTHONPATH=/app
ENV UVICORN_LOOP=asyncio
# Run
EXPOSE 8000
CMD ["python", "main.py", "--reload"]
CMD ["/app/scripts/docker/entrypoint.sh"]