open-webui/Dockerfile

21 lines
318 B
Docker
Raw Normal View History

2023-10-08 22:38:42 +00:00
# syntax=docker/dockerfile:1
FROM node:latest
WORKDIR /app
ARG OLLAMA_API_ENDPOINT=''
RUN echo $OLLAMA_API_ENDPOINT
2023-10-08 22:38:42 +00:00
ENV ENV prod
ENV PUBLIC_API_ENDPOINT $OLLAMA_API_ENDPOINT
RUN echo $PUBLIC_API_ENDPOINT
2023-10-08 22:38:42 +00:00
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
CMD [ "npm", "run", "start"]