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