feat: enable buildtime API_ENDPOINT env var

This commit is contained in:
Timothy J. Baek authored and AJ ONeal committed 2023-10-22 12:26:54 -06:00
1 parent f4f1283cd5
commit 86395a8c1f
10 files changed
+692 -64

No files matched your search

+8 -3
View File
@@ -1,15 +1,20 @@
# syntax=docker/dockerfile:1
FROM node:latest
WORKDIR /app
ARG OLLAMA_API_ENDPOINT=''
RUN echo $OLLAMA_API_ENDPOINT
ENV ENV prod
ENV PUBLIC_API_ENDPOINT $OLLAMA_API_ENDPOINT
RUN echo $PUBLIC_API_ENDPOINT
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
CMD [ "node", "./build/index.js"]
CMD [ "npm", "run", "start"]