# Pull the base image FROM ghcr.io/danny-avila/librechat:latest # Set environment variables ENV HOST=0.0.0.0 ENV PORT=7860 ENV SESSION_EXPIRY=604800000 # Install dependencies RUN cd /app/api && npm install # Command to run on container start CMD ["npm", "run", "backend"]