Update Dockerfile
Browse files- Dockerfile +9 -10
Dockerfile
CHANGED
@@ -1,19 +1,17 @@
|
|
|
|
1 |
FROM ghcr.io/danny-avila/librechat-dev:latest
|
2 |
-
|
|
|
|
|
3 |
|
4 |
# Set environment variables
|
5 |
ENV HOST=0.0.0.0
|
6 |
-
ENV PORT=
|
7 |
ENV SESSION_EXPIRY=900000
|
8 |
ENV REFRESH_TOKEN_EXPIRY=604800000
|
9 |
-
|
10 |
-
# Uncomment the following ENV to enable search
|
11 |
-
# Feel free to clone our meilisearch space and update the URL with your own
|
12 |
-
|
13 |
-
# ENV SEARCH=true
|
14 |
# ENV MEILI_NO_ANALYTICS=true
|
15 |
# ENV MEILI_HOST=https://librechat-meilisearch.hf.space
|
16 |
-
# ENV MEILI_HTTP_ADDR=https://librechat-meilisearch.hf.space
|
17 |
|
18 |
# Create necessary directories
|
19 |
RUN mkdir -p /app/uploads/temp
|
@@ -27,12 +25,13 @@ RUN chmod -R 777 /app/client/public/images
|
|
27 |
RUN chmod -R 777 /app/api/logs/
|
28 |
RUN chmod -R 777 /app/data
|
29 |
|
|
|
30 |
# Copy Custom Endpoints Config
|
31 |
-
RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/
|
32 |
# COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
|
33 |
|
34 |
# Install dependencies
|
35 |
RUN cd /app/api && npm install
|
36 |
|
37 |
# Command to run on container start
|
38 |
-
CMD ["npm", "run", "backend"]
|
|
|
1 |
+
# Pull the base image
|
2 |
FROM ghcr.io/danny-avila/librechat-dev:latest
|
3 |
+
|
4 |
+
# FROM ghcr.io/danny-avila/librechat-dev:0a1d38e3189a4f905d021be41ac2c8b5bd03d8b7
|
5 |
+
|
6 |
|
7 |
# Set environment variables
|
8 |
ENV HOST=0.0.0.0
|
9 |
+
ENV PORT=7860
|
10 |
ENV SESSION_EXPIRY=900000
|
11 |
ENV REFRESH_TOKEN_EXPIRY=604800000
|
12 |
+
ENV SEARCH=false
|
|
|
|
|
|
|
|
|
13 |
# ENV MEILI_NO_ANALYTICS=true
|
14 |
# ENV MEILI_HOST=https://librechat-meilisearch.hf.space
|
|
|
15 |
|
16 |
# Create necessary directories
|
17 |
RUN mkdir -p /app/uploads/temp
|
|
|
25 |
RUN chmod -R 777 /app/api/logs/
|
26 |
RUN chmod -R 777 /app/data
|
27 |
|
28 |
+
|
29 |
# Copy Custom Endpoints Config
|
30 |
+
RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/LibreChat-AI/librechat-config-yaml/refs/heads/main/librechat-aio.yaml
|
31 |
# COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
|
32 |
|
33 |
# Install dependencies
|
34 |
RUN cd /app/api && npm install
|
35 |
|
36 |
# Command to run on container start
|
37 |
+
CMD ["npm", "run", "backend"]
|