# Use the prebuilt image FROM ghcr.io/open-webui/open-webui:main # environment variables ARG UID=1000 ARG GID=1000 ENV ADMIN_EMAIL=twang293@gmail.com ENV CUSTOM_NAME=Riverhill ENV WEBUI_NAME=Riverhill ENV DEFAULT_MODELS=gpt4o ENV ENABLE_RAG_HYBRID_SEARCH=true ENV ENABLE_RAG_WEB_SEARCH=true ENV RAG_WEB_SEARCH_ENGINE=jina ENV AUDIO_STT_ENGINE=openai ENV AUDIO_TTS_ENGINE=openai ENV ENABLE_IMAGE_GENERATION=true ENV IMAGE_GENERATION_ENGINE=openai ENV DATA_DIR=./data # Create data directories and set permissions RUN mkdir -p $DATA_DIR RUN chown -R $UID:$GID $DATA_DIR # Expose the port EXPOSE 8080 # Set the working directory WORKDIR /app/backend # Command to start the application CMD ["bash", "start.sh"]