Spaces:
Paused
Paused
File size: 1,213 Bytes
18769af 77f02b2 18769af 0d8d86a 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 |
FROM ghcr.io/danny-avila/librechat-dev:latest
EXPOSE 3080
# Set environment variables
ENV HOST=0.0.0.0
ENV PORT=3080
ENV SESSION_EXPIRY=900000
ENV REFRESH_TOKEN_EXPIRY=604800000
# The following OpenAI models will be available in the WebUI, you can customize the list if you want to
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
# 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 directory ans set permission, used for images temporary storage
RUN mkdir -p /app/client/public/images/temp
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"]
|