"vscode:/vscode.git/clone" did not exist on "d79ced3292445d8471b3c4e5ce2dbf311834ec1b"
Dockerfile 318 Bytes
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
# syntax=docker/dockerfile:1

Timothy J. Baek's avatar
Timothy J. Baek committed
3
FROM node:alpine
Timothy J. Baek's avatar
Timothy J. Baek committed
4
WORKDIR /app
5

6
7
ARG OLLAMA_API_BASE_URL=''
RUN echo $OLLAMA_API_BASE_URL
8

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

11
12
ENV PUBLIC_API_BASE_URL $OLLAMA_API_BASE_URL
RUN echo $PUBLIC_API_BASE_URL
13

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"]