|
FROM python:3.11 |
|
|
|
|
|
RUN chmod -R 777 /apps/ai_tutor |
|
|
|
WORKDIR /apps/ai_tutor |
|
|
|
RUN pip install --upgrade pip |
|
RUN pip install edubotics-core |
|
|
|
|
|
RUN mkdir logs && chmod 777 logs |
|
|
|
|
|
RUN mkdir /.cache && chmod -R 777 /.cache |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true |
|
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true |
|
RUN --mount=type=secret,id=CHAINLIT_URL,mode=0444,required=true |
|
RUN --mount=type=secret,id=LITERAL_API_URL,mode=0444,required=true |
|
RUN --mount=type=secret,id=LLAMA_CLOUD_API_KEY,mode=0444,required=true |
|
RUN --mount=type=secret,id=OAUTH_GOOGLE_CLIENT_ID,mode=0444,required=true |
|
RUN --mount=type=secret,id=OAUTH_GOOGLE_CLIENT_SECRET,mode=0444,required=true |
|
RUN --mount=type=secret,id=LITERAL_API_KEY_LOGGING,mode=0444,required=true |
|
RUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true |
|
|
|
|
|
CMD vectorstore_creator --config_file config/config.yml --project_config_file config/project_config.yml && python app.py --host 0.0.0.0 --port 7860 |