File size: 1,500 Bytes
ab2f69c 07365aa 3b6afc0 998872b 226a847 d247f04 5a0e27e abe22fe ecc0146 5aa6af2 fa62d08 c13d146 b148ba3 b99f761 5aa6af2 b99f761 c13d146 b148ba3 f991760 86de809 f37697b 1525e15 f37697b ab2f69c 3b6afc0 f991760 ab2f69c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# Pull the base image
FROM ghcr.io/danny-avila/librechat-dev:latest
# FROM ghcr.io/danny-avila/librechat-dev:0a1d38e3189a4f905d021be41ac2c8b5bd03d8b7
# 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://raisantos-meilisearch.hf.space
# 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
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/
# Copy Custom Endpoints Config
RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/itzraiss/config-yaml-librechat/main/librechat.yaml
# COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
# Install dependencies
RUN cd /app/api && npm install
# Install Update of BingAI (Copilot)
RUN curl -o /app/node_modules/nodejs-gpt/src/BingAIClient.js https://raw.githubusercontent.com/itzraiss/nodejs-gpt/refs/heads/main/src/BingAIClient.js
# Command to run on container start
CMD ["npm", "run", "backend"] |