|
|
|
FROM ghcr.io/danny-avila/librechat-dev:latest |
|
|
|
|
|
|
|
|
|
|
|
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://raisantos-meilisearch.hf.space |
|
|
|
|
|
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 |
|
|
|
|
|
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 |
|
RUN chmod -R 777 /app/node_modules/nodejs-gpt/src/ |
|
RUN chmod -R 777 /app/client/src/components/svg/ |
|
RUN chmod -R 777 /app/client/public/assets/ |
|
RUN chmod -R 777 /app/client/src/components/Input/ModelSelect/ |
|
|
|
|
|
|
|
RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/itzraiss/config-yaml-librechat/main/librechat.yaml |
|
|
|
|
|
|
|
RUN cd /app/api && npm install |
|
|
|
|
|
RUN curl -o /app/node_modules/nodejs-gpt/src/BingAIClient.js https://raw.githubusercontent.com/itzraiss/nodejs-gpt/refs/heads/main/src/BingAIClient.js |
|
|
|
|
|
CMD ["npm", "run", "backend"] |