|
FROM ghcr.io/danny-avila/librechat-dev:latest |
|
EXPOSE 3080 |
|
|
|
|
|
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 ASSISTANTS_BASE_URL=https://api.daifuku.asia |
|
ENV DALLE_REVERSE_PROXY=https://api.daifuku.asia/v1/images/generations |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
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 librechat.yaml /app/librechat.yaml |
|
|
|
|
|
RUN cd /app/api && npm install |
|
|
|
|
|
CMD ["npm", "run", "backend"] |
|
|