File size: 1,484 Bytes
e34dc73
bb79d3f
77f02b2
18769af
 
 
 
 
 
4d41e0b
32a0c67
965480f
4d41e0b
2e81aca
 
 
 
0d8d86a
18769af
 
 
 
 
 
 
 
da233d0
cb2dd42
18769af
4f13733
 
 
 
cb2dd42
18769af
4f13733
 
18769af
cb2dd42
 
 
18769af
 
 
 
 
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
45
46
47
FROM ghcr.io/danny-avila/librechat@sha256:fe7387f5d1232b8514fa4de049d2cdae36ddf85cc47f618c0309f470cbe82959

EXPOSE 3080

# Set environment variables
ENV HOST=0.0.0.0
ENV PORT=3080
ENV SESSION_EXPIRY=900000
ENV REFRESH_TOKEN_EXPIRY=604800000
ENV OPENAI_REVERSE_PROXY=https://api.daifuku.asia/v1
ENV ANTHROPIC_REVERSE_PROXY=https://api.discord.rocks
ENV ASSISTANTS_BASE_URL=https://api.daifuku.asia
ENV DALLE_REVERSE_PROXY=https://api.daifuku.asia/v1/images/generations
ENV GOOGLE_SAFETY_SEXUALLY_EXPLICIT=BLOCK_ONLY_HIGH
ENV GOOGLE_SAFETY_HATE_SPEECH=BLOCK_ONLY_HIGH
ENV GOOGLE_SAFETY_HARASSMENT=BLOCK_ONLY_HIGH
ENV GOOGLE_SAFETY_DANGEROUS_CONTENT=BLOCK_ONLY_HIGH

# 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/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
COPY librechat.yaml /app/librechat.yaml

# Install dependencies
RUN cd /app/api && npm install

# Command to run on container start
CMD ["npm", "run", "backend"]