mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-30 01:10:17 -05:00
feat: enable buildtime API_ENDPOINT env var
This commit is contained in:
committed by
AJ ONeal
parent
f4f1283cd5
commit
86395a8c1f
11
Dockerfile
11
Dockerfile
@@ -1,15 +1,20 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ARG OLLAMA_API_ENDPOINT=''
|
||||
RUN echo $OLLAMA_API_ENDPOINT
|
||||
|
||||
ENV ENV prod
|
||||
|
||||
ENV PUBLIC_API_ENDPOINT $OLLAMA_API_ENDPOINT
|
||||
RUN echo $PUBLIC_API_ENDPOINT
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
CMD [ "node", "./build/index.js"]
|
||||
CMD [ "npm", "run", "start"]
|
||||
|
||||
Reference in New Issue
Block a user