space / Dockerfile
rao2's picture
Update Dockerfile
a7f90ff
raw
history blame
1.14 kB
# 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,gpt-3.5-turbo-16k,gpt-4,gpt-4-0314,gpt-4-0613,gpt-4-32k,gpt-4-32k-0613,gpt-4-1106-preview,gpt-4-vision-preview,dall-e-2,dall-e-3,Creative,Balanced,Precise
ENV PLUGIN_MODELS=gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-4,gpt-4-0314,gpt-4-0613,gpt-4-32k,gpt-4-32k-0613,gpt-4-1106-preview,gpt-4-vision-preview,Creative,Balanced,Precise
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 for vision
RUN mkdir -p /app/client/public/images/temp
# Give write permission to the directory
RUN chmod -R 777 /app/client/public/images
# Install dependencies
RUN cd /app/api && npm install
# Command to run on container start
CMD ["npm", "run", "backend"]