|
FROM ghcr.io/open-webui/open-webui:main |
|
|
|
ENV PORT=7860 |
|
ENV HOST=0.0.0.0 |
|
|
|
USER root |
|
|
|
|
|
COPY sync_webuidb.sh /app/sync_webuidb.sh |
|
COPY requirements.txt /app/requirements.txt |
|
|
|
|
|
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \ |
|
pip install --no-cache-dir -r /app/requirements.txt || true |
|
|
|
EXPOSE 7860 |
|
COPY icon.png /app/static/icon.png |
|
|
|
|
|
RUN cd /app/static && \ |
|
for file in *.png *.svg; do \ |
|
if [ "$file" != "icon.png" ]; then \ |
|
cp -f icon.png "$file"; \ |
|
fi \ |
|
done |
|
|
|
|
|
CMD bash -c "/app/sync_webuidb.sh & ./start.sh" |