mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-11 16:52:38 +02:00
fix: reduced docker size by 67%
This commit is contained in:
parent
aed8163aee
commit
590baff093
3 changed files with 75 additions and 37 deletions
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue