refactor(docker): remove shared memory size configuration to streamline Dockerfile

This commit is contained in:
UncleCode
2024-11-16 17:35:27 +08:00
parent 79feab89c4
commit 1961adb530

View File

@@ -123,10 +123,5 @@ RUN playwright install
# Expose port # Expose port
EXPOSE 8000 11235 9222 8080 EXPOSE 8000 11235 9222 8080
# Optional: Increase shared memory size to prevent browser crashes
# when loading heavy pages
RUN mkdir /dev/shm
VOLUME /dev/shm
# Start the FastAPI server # Start the FastAPI server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "11235"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "11235"]