open-webui/Dockerfile

21 lines
318 B
Docker
Raw Normal View History

2023-10-09 00:38:42 +02:00
# syntax=docker/dockerfile:1
2023-10-23 07:02:19 +02:00
FROM node:alpine
2023-10-09 00:38:42 +02:00
WORKDIR /app
ARG OLLAMA_API_BASE_URL=''
RUN echo $OLLAMA_API_BASE_URL
2023-10-09 00:38:42 +02:00
ENV ENV prod
ENV PUBLIC_API_BASE_URL $OLLAMA_API_BASE_URL
RUN echo $PUBLIC_API_BASE_URL
2023-10-09 00:38:42 +02:00
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
CMD [ "npm", "run", "start"]