Skip to content

Commit

Permalink
Merge pull request #13 from rancher-sandbox/remove-backend
Browse files Browse the repository at this point in the history
Remove unused backend code and it's references
  • Loading branch information
jandubois authored Oct 31, 2024
2 parents 6f2153e + 112a597 commit 5838d1f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 145 deletions.
12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ ENV CGO_ENABLED=0
RUN apk update && \
apk add --no-cache curl unzip

WORKDIR /backend
COPY backend/go.* .
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go mod download
COPY backend/. .
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -trimpath -ldflags="-s -w" -o bin/service

WORKDIR /installer
COPY installer/go.* .
RUN --mount=type=cache,target=/go/pkg/mod \
Expand Down Expand Up @@ -56,7 +46,6 @@ LABEL org.opencontainers.image.title="Open WebUI" \
com.docker.extension.categories="" \
com.docker.extension.changelog=""

COPY --from=builder /backend/bin/service /
COPY docker-compose.yaml .
COPY metadata.json .
COPY open-webui.svg .
Expand All @@ -67,4 +56,3 @@ COPY --from=builder /installer/bin/installer-windows.exe /windows/installer.exe
COPY /searxng/limiter.toml /linux/searxng/limiter.toml
COPY /searxng/settings.yml /linux/searxng/settings.yml
COPY /searxng/uwsgi.ini /linux/searxng/uwsgi.ini
CMD ["/service -socket", "/run/guest-services/backend.sock"]
22 changes: 0 additions & 22 deletions backend/go.mod

This file was deleted.

43 changes: 0 additions & 43 deletions backend/go.sum

This file was deleted.

62 changes: 0 additions & 62 deletions backend/main.go

This file was deleted.

2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
services:
rd-open-webui-ext:
image: ${DESKTOP_PLUGIN_IMAGE}
searxng:
image: searxng/searxng:latest
ports:
Expand Down
5 changes: 1 addition & 4 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"icon": "open-webui.svg",
"vm": {
"composefile": "docker-compose.yaml",
"exposes": {
"socket": "backend.sock"
}
"composefile": "docker-compose.yaml"
},
"ui": {
"dashboard-tab": {
Expand Down

0 comments on commit 5838d1f

Please sign in to comment.