File size: 2,252 Bytes
7b8607a 097c30b 3a7cba3 ee2218d 3a7cba3 ee2218d 3a7cba3 097c30b 22303f5 3a7cba3 22303f5 3a7cba3 60c47b5 22303f5 720200d 22303f5 097c30b 22303f5 3a7cba3 097c30b 720200d 3a7cba3 097c30b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | FROM ghcr.io/open-webui/open-webui:main
# WebUI sada sluša na 7860 (interno), nginx preuzima 8080
ENV PORT=7860
ENV HOST=0.0.0.0
ENV OPENWEBUI_DATA_DIR=/data
# Auth
ENV WEBUI_AUTH=true
ENV ENABLE_SIGNUP=false
ENV DEFAULT_USER_ROLE=user
# Analytics opt-out
ENV ANONYMIZED_TELEMETRY=false
ENV SCARF_NO_ANALYTICS=true
ENV DO_NOT_TRACK=true
# Instaliraj nginx
RUN apt-get update -qq && apt-get install -y -qq nginx && rm -rf /var/lib/apt/lists/*
# Python skripte
COPY setup_endpoints.sh /app/setup_endpoints.sh
COPY backup_restore.sh /app/backup_restore.sh
COPY install_functions.py /app/install_functions.py
COPY context_detector.py /app/context_detector.py
COPY token_compressor.py /app/token_compressor.py
COPY coding_priority_pipe.py /app/coding_priority_pipe.py
COPY smart_matcher.py /app/smart_matcher.py
COPY api_router.py /app/api_router.py
COPY system_prompt.txt /app/system_prompt.txt
COPY tool_server.py /app/tool_server.py
# JSON funkcije
COPY token_saver.json /app/token_saver.json
COPY context_clip_filter.json /app/context_clip_filter.json
COPY auto_disable_native_tools.json /app/auto_disable_native_tools.json
COPY auto_memory.json /app/auto_memory.json
COPY global_system_prompt_filter.json /app/global_system_prompt_filter.json
COPY __easysearch_v0_4_3__high-performance_web_search_filter.json /app/__easysearch_v0_4_3__high-performance_web_search_filter.json
COPY __mermaid_doctor_-_heals_broken_mermaid_diagrams_generated_by_small_or_hallucinating_models.json /app/__mermaid_doctor_-_heals_broken_mermaid_diagrams_extended.json
COPY github_simple.json /app/github_simple.json
COPY pdf_tools_-_rich_ui_for_in_context_basic_editing_.json /app/pdf_tools_-_rich_ui_for_in_context_basic_editing_.json
# nginx config i tools HTML
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /app/tools /tmp/nginx_client /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi
COPY preset_creator.html /app/tools/preset_creator.html
RUN chmod +x /app/setup_endpoints.sh /app/backup_restore.sh
EXPOSE 8080
CMD bash -lc "\
bash /app/backup_restore.sh restore; \
bash /app/backup_restore.sh loop & \
python3 /app/tool_server.py & \
nginx -g 'daemon off;' & \
sleep 10 && bash /app/setup_endpoints.sh & \
bash start.sh"
|