# Pull the base image #FROM ghcr.io/danny-avila/librechat-dev:650e9b4f6c7e1ea063638ce10f95fbd53631f4bd FROM ghcr.io/danny-avila/librechat-dev:latest # Set environment variables ENV HOST=0.0.0.0 ENV PORT=7860 ENV SESSION_EXPIRY=900000 ENV REFRESH_TOKEN_EXPIRY=604800000 ENV SEARCH=true ENV MEILI_NO_ANALYTICS=true ENV MEILI_HOST=https://martynka-meilisearch.hf.space ENV CONFIG_PATH=/app/librechat.yaml ENV CUSTOM_FOOTER=EasierIT # Create necessary directories RUN mkdir -p /app/uploads/temp RUN mkdir -p /app/client/public/images/temp RUN mkdir -p /app/api/logs/ RUN mkdir -p /app/data # Give write permission to the directory RUN chmod -R 777 /app/uploads/temp RUN chmod -R 777 /app/client/public/images RUN chmod -R 777 /app/api/logs/ RUN chmod -R 777 /app/data user root RUN apk update RUN apk add git copy logo-pp.svg /app/client/public/assets/logo.svg copy logo-pp.svg /app/client/dist/assets/logo.svg copy logo-pp.svg /app/node_modules/date-fns/docs/logo.svg copy logo-pp.svg /app/node_modules/ldapjs/docs/branding/public/media/img/logo.svg copy logo-pp.svg /app/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg copy logo-pp.svg /app/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg copy logo-pp.svg /app/node_modules/psl/browserstack-logo.svg # Copy Custom Endpoints Config copy config.yaml /app/librechat.yaml # Install dependencies RUN cd /app/api && npm install # Command to run on container start CMD ["npm", "run", "backend"]