Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
6c1c889e
Commit
6c1c889e
authored
Jan 04, 2024
by
Timothy J. Baek
Browse files
fix: revert to node for container image
parent
3fc40d06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Dockerfile
Dockerfile
+5
-5
src/lib/constants.ts
src/lib/constants.ts
+1
-1
No files found.
Dockerfile
View file @
6c1c889e
# syntax=docker/dockerfile:1
# syntax=docker/dockerfile:1
FROM
oven/bun:latest
as build
FROM
node:alpine
as build
WORKDIR
/app
WORKDIR
/app
COPY
package.json package-lock.json ./
COPY
package.json package-lock.json ./
COPY
. .
RUN
npm ci
RUN
bun
install
COPY
. .
RUN
bun
run build
RUN
npm
run build
FROM
python:3.11-slim-buster as base
FROM
python:3.11-slim-buster as base
...
...
src/lib/constants.ts
View file @
6c1c889e
import
{
dev
}
from
'
$app/environment
'
;
import
{
dev
}
from
'
$app/environment
'
;
export
const
WEBUI_BASE_URL
=
``
;
export
const
WEBUI_BASE_URL
=
dev
?
`http://
${
location
.
hostname
}
:8080`
:
``
;
export
const
WEBUI_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/api/v1`
;
export
const
WEBUI_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/api/v1`
;
export
const
OLLAMA_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/ollama/api`
;
export
const
OLLAMA_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/ollama/api`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment