File size: 819 Bytes
ab2f69c fd1c967 6ca9913 3b6afc0 998872b 226a847 b2677d3 18d6384 dd69a74 bf8fc6f ab2f69c 3b6afc0 ab2f69c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Pull the base image
FROM ghcr.io/danny-avila/librechat-dev:latest
# FROM ghcr.io/danny-avila/librechat:latest # Uncomment this and comment out the previous line for the less up to date but more stable release
# Set environment variables
ENV HOST=0.0.0.0
ENV PORT=7860
ENV SESSION_EXPIRY=900000
ENV REFRESH_TOKEN_EXPIRY=604800000
ENV OPENAI_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
ENV PLUGIN_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
ENV SEARCH=false
# Install dependencies
RUN cd /app/api && npm install
# Command to run on container start
CMD ["npm", "run", "backend"] |