Merge pull request #3 from tools4ds/retargeting
Browse files123456789101112131415161718198 unmodified lines28293031FROM python:3.11# Change permissions to allow writing to the directoryRUN chmod -R 777 /apps/ai_tutorWORKDIR /apps/ai_tutorRUN pip install --upgrade pipRUN pip install edubotics-core# Create a logs directory and set permissionsRUN mkdir logs && chmod 777 logs# Create a cache directory within the application's working directoryRUN mkdir /.cache && chmod -R 777 /.cache# Expose the port the app runs onEXPOSE 78608 unmodified linesRUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true# Default command to run the applicationCMD vectorstore_creator --config_file config/config.yml --project_config_file config/project_config.yml && python app.py --host 0.0.0.0 --port 78601234567891011121314151617181920212223242526278 unmodified lines36373839FROM python:3.11WORKDIR /codeRUN pip install --upgrade pipRUN pip install --no-cache-dir edubotics_coreCOPY . /code# List the contents of the /code directory to verify files are copied correctlyRUN ls -R /code# Change permissions to allow writing to the directoryRUN chmod -R 777 /code# Create a logs directory and set permissionsRUN mkdir /code/apps/ai_tutor/logs && chmod 777 /code/apps/ai_tutor/logs# Create a cache directory within the application's working directoryRUN mkdir /.cache && chmod -R 777 /.cacheWORKDIR /code/apps/ai_tutor# Expose the port the app runs onEXPOSE 78608 unmodified linesRUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true# Default command to run the applicationCMD vectorstore_creator --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860
Dockerfile+15-7