vector-forge/LibreChat
0
1FROM ghcr.io/danny-avila/librechat-dev:latest2EXPOSE 30803 4# Set environment variables5ENV HOST=0.0.0.06ENV PORT=30807ENV SESSION_EXPIRY=9000008ENV REFRESH_TOKEN_EXPIRY=6048000009 10# Uncomment the following ENV to enable search11# Feel free to clone our meilisearch space and update the URL with your own12 13# ENV SEARCH=true14# ENV MEILI_NO_ANALYTICS=true15# ENV MEILI_HOST=https://librechat-meilisearch.hf.space16# ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space17 18# Create necessary directories19RUN mkdir -p /app/uploads/temp20RUN mkdir -p /app/client/public/images/temp21RUN mkdir -p /app/api/logs/22RUN mkdir -p /app/data23 24# Give write permission to the directory25RUN chmod -R 777 /app/uploads/temp26RUN chmod -R 777 /app/client/public/images27RUN chmod -R 777 /app/api/logs/28RUN chmod -R 777 /app/data29 30# Copy Custom Endpoints Config31RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/fuegovic/lc-config-yaml/main/librechat-rw.yaml32# COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml33 34# Install dependencies35RUN cd /app/api && npm install36 37# Command to run on container start38CMD ["npm", "run", "backend"]39 