# Base image FROM node:18 # Install supervisor RUN apt-get update && apt-get install -y supervisor # Set working directory WORKDIR /app # Clone LibreChat RUN git clone https://github.com/danny-avila/LibreChat.git librechat # Install server dependencies RUN cd librechat/server && npm install # Install client dependencies RUN cd librechat/client && npm install # Copy supervisor config COPY supervisord.conf /etc/supervisord.conf # Start both frontend and backend CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]