feat: Package OpenWebUI upload script as Docker container
This commit is contained in:
12
openwebui_uploader/Dockerfile
Normal file
12
openwebui_uploader/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY upload_to_openwebui.py .
|
||||||
|
|
||||||
|
# Command to run the script. It needs access to the source data on the host.
|
||||||
|
# We'll use a bind mount for the source data.
|
||||||
|
CMD ["python", "upload_to_openwebui.py"]
|
||||||
1
openwebui_uploader/requirements.txt
Normal file
1
openwebui_uploader/requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
requests
|
||||||
Reference in New Issue
Block a user