Spaces:
Paused
Paused
Download Dockerfile from MyLifeCareAI/demo: direct link, hf CLI and curl.
- Browser
- Download file 4.73 kB
-
https://huggingface.co/spaces/MyLifeCareAI/demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MyLifeCareAI/demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MyLifeCareAI/demo/resolve/main/Dockerfile
4.73 kB
| # FROM ghcr.io/danny-avila/librechat-dev:latest | |
| # MyLIfeCare Image | |
| FROM ghcr.io/ghowe/mylifecare:latest | |
| EXPOSE 3080 | |
| # Set environment variables | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=3080 | |
| ENV SESSION_EXPIRY=900000 | |
| ENV REFRESH_TOKEN_EXPIRY=604800000 | |
| # Uncomment the following ENV to enable search | |
| # Feel free to clone our meilisearch space and update the URL with your own | |
| # ENV SEARCH=true | |
| # ENV MEILI_NO_ANALYTICS=true | |
| # ENV MEILI_HOST=https://librechat-meilisearch.hf.space | |
| # ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space | |
| # Create necessary directories | |
| RUN mkdir -p /app/uploads/temp | |
| RUN mkdir -p /app/client/public/images/temp | |
| RUN mkdir -p /app/client/public/images/670818ae90e842351f3f2944 | |
| 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/uploads/temp | |
| RUN chmod -R 777 /app/client/public/images/670818ae90e842351f3f2944 | |
| 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/fuegovic/lc-config-yaml/main/librechat-rw.yaml | |
| RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/ghowe/LibreChat/main/mylifecare.yaml | |
| # COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml | |
| # Copy Assistants avatar images to assets | |
| RUN curl -o /app/client/public/images/female-personal-companion.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-personal-companion.png | |
| RUN curl -o /app/client/public/images/entertainment-curator.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/entertainment-curator.png | |
| RUN curl -o /app/client/public/images/medical-records.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medical-records.png | |
| RUN curl -o /app/client/public/images/male-physical-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/male-physical-therapist.png | |
| RUN curl -o /app/client/public/images/female-occupational.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-occupational.png | |
| RUN curl -o /app/client/public/images/female-speech-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-speech-therapist.png | |
| RUN curl -o /app/client/public/images/cognitive-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/cognitive-therapist.png | |
| RUN curl -o /app/client/public/images/medical-assistant.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medical-assistant.png | |
| RUN curl -o /app/client/public/images/medicare-wise.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medicare-wise.png | |
| # Copy Assistants avatar images to the demo user | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/female-personal-companion.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-personal-companion.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/entertainment-curator.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/entertainment-curator.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/medical-records.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medical-records.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/male-physical-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/male-physical-therapist.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/female-occupational.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-occupational.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/female-speech-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/female-speech-therapist.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/cognitive-therapist.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/cognitive-therapist.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/medical-assistant.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medical-assistant.png | |
| RUN curl -o /app/client/public/images/670818ae90e842351f3f2944/medicare-wise.png https://github.com/ghowe/LibreChat/upload/main/client/public/assets/medicare-wise.png | |
| #TODO Remove after assists | |
| RUN chmod -R 777 /app/client/public/images | |
| RUN chmod -R 777 /app/client/public/images/670818ae90e842351f3f2944 | |
| # Install dependencies | |
| RUN cd /app/api && npm install | |
| # Command to run on container start | |
| CMD ["npm", "run", "backend"] | |