Dockerfile 318 Bytes
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
3
4
# syntax=docker/dockerfile:1

FROM node:latest
WORKDIR /app
5
6
7
8

ARG OLLAMA_API_ENDPOINT=''
RUN echo $OLLAMA_API_ENDPOINT

Timothy J. Baek's avatar
Timothy J. Baek committed
9
10
ENV ENV prod

11
12
13
ENV PUBLIC_API_ENDPOINT $OLLAMA_API_ENDPOINT
RUN echo $PUBLIC_API_ENDPOINT

Timothy J. Baek's avatar
Timothy J. Baek committed
14
15
16
17
18
19
COPY package.json package-lock.json ./ 
RUN npm ci

COPY . .
RUN npm run build

20
CMD [ "npm", "run", "start"]