chat / Dockerfile
wynai's picture
Update Dockerfile
b837521 verified
raw
history blame
774 Bytes
FROM ghcr.io/open-webui/open-webui:main
ENV PORT=7860
ENV HOST=0.0.0.0
USER root
# Sao chép các file cần thiết
COPY sync_webuidb.sh /app/sync_webuidb.sh
COPY requirements.txt /app/requirements.txt
# Cấp quyền và cài thư viện Python
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \
pip install --no-cache-dir -r /app/requirements.txt || true
EXPOSE 7860# Sao chép icon mới vào container
COPY icon.png /app/static/icon.png
# Thay thế tất cả các icon cũ (png, svg) bằng icon.png
RUN cd /app/static && \
for file in *.png *.svg; do \
if [ "$file" != "icon.png" ]; then \
cp -f icon.png "$file"; \
fi \
done
# Chạy song song script và server
CMD bash -c "/app/sync_webuidb.sh & ./start.sh"