|
FROM python:3.11 |
|
|
|
WORKDIR /code |
|
|
|
COPY ./requirements.txt /code/requirements.txt |
|
COPY ./setup.py /code/setup.py |
|
|
|
RUN pip install --upgrade pip |
|
|
|
RUN pip install --no-cache-dir -r /code/requirements.txt |
|
RUN pip install -e . |
|
|
|
COPY . /code |
|
|
|
|
|
COPY .env /code/apps/ai_tutor/.env |
|
|
|
|
|
RUN ls -R /code |
|
|
|
|
|
RUN chmod -R 777 /code |
|
|
|
|
|
RUN mkdir /code/apps/ai_tutor/logs && chmod 777 /code/apps/ai_tutor/logs |
|
|
|
|
|
RUN mkdir /.cache && chmod -R 777 /.cache |
|
|
|
WORKDIR /code/apps/ai_tutor |
|
|
|
RUN ls -R /code |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD python -m edubotics_core.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860 |