Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -1,17 +1,19 @@
|
|
1 |
-
FROM ghcr.io/open-webui/open-webui:
|
2 |
|
3 |
ENV PORT=7860
|
4 |
ENV HOST=0.0.0.0
|
5 |
|
6 |
USER root
|
7 |
|
8 |
-
#
|
9 |
COPY sync_webuidb.sh /app/sync_webuidb.sh
|
|
|
10 |
|
11 |
-
# Cấp quyền
|
12 |
-
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh
|
|
|
13 |
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
# Chạy song song
|
17 |
CMD bash -c "/app/sync_webuidb.sh & ./start.sh"
|
|
|
1 |
+
FROM ghcr.io/open-webui/open-webui:main
|
2 |
|
3 |
ENV PORT=7860
|
4 |
ENV HOST=0.0.0.0
|
5 |
|
6 |
USER root
|
7 |
|
8 |
+
# Sao chép các file cần thiết
|
9 |
COPY sync_webuidb.sh /app/sync_webuidb.sh
|
10 |
+
COPY requirements.txt /app/requirements.txt
|
11 |
|
12 |
+
# Cấp quyền và cài thư viện Python
|
13 |
+
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \
|
14 |
+
pip install --no-cache-dir -r /app/requirements.txt || true
|
15 |
|
16 |
EXPOSE 7860
|
17 |
|
18 |
+
# Chạy song song script và server
|
19 |
CMD bash -c "/app/sync_webuidb.sh & ./start.sh"
|