diff --git a/openwebui_uploader/Dockerfile b/openwebui_uploader/Dockerfile new file mode 100644 index 0000000..fc1c824 --- /dev/null +++ b/openwebui_uploader/Dockerfile @@ -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"] diff --git a/openwebui_uploader/requirements.txt b/openwebui_uploader/requirements.txt new file mode 100644 index 0000000..f229360 --- /dev/null +++ b/openwebui_uploader/requirements.txt @@ -0,0 +1 @@ +requests diff --git a/scripts/upload_to_openwebui.py b/openwebui_uploader/upload_to_openwebui.py similarity index 100% rename from scripts/upload_to_openwebui.py rename to openwebui_uploader/upload_to_openwebui.py