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