Download Dockerfile from Guru-25/chat: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/Guru-25/chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Guru-25/chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Guru-25/chat/resolve/main/Dockerfile
1.01 kB
| # 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 MEILI_NO_ANALYTICS=true | |
| ENV CUSTOM_FOOTER= | |
| ENV HELP_AND_FAQ_URL=/ | |
| # 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 | |
| # Copy Custom Endpoints Config | |
| # RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/LibreChat-AI/librechat-config-yaml/refs/heads/main/librechat-aio.yaml | |
| COPY librechat.yaml /app/librechat.yaml | |
| # Install dependencies | |
| RUN cd /app/api && npm install | |
| # Command to run on container start | |
| CMD ["npm", "run", "backend"] |