File size: 1,064 Bytes
ab2f69c
4bda13d
3b6afc0
998872b
 
 
226a847
 
2889f3a
 
128fc74
 
 
 
abe22fe
ecc0146
5aa6af2
fa62d08
c13d146
b148ba3
b99f761
 
5aa6af2
b99f761
c13d146
b148ba3
bf8fc6f
f37697b
 
250615f
f37697b
ab2f69c
 
3b6afc0
ab2f69c
 
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
# Pull the base image
FROM ghcr.io/danny-avila/librechat@sha256:d485be7fe3101c3f2599ca586e75106e01da42dd1981e57295838c5f1726b3d1

# Set environment variables
ENV HOST=0.0.0.0
ENV PORT=7860
ENV SESSION_EXPIRY=900000
ENV REFRESH_TOKEN_EXPIRY=604800000
ENV OPENAI_REVERSE_PROXY=https://cxm.us.kg/v1
ENV ANTHROPIC_REVERSE_PROXY=user_provided
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

# 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"]