2024-07-25 12:55:48 -04:00
|
|
|
FROM node:20.12.2-alpine
|
|
|
|
|
2024-07-26 17:17:03 -04:00
|
|
|
RUN mkdir /app
|
2024-07-25 12:55:48 -04:00
|
|
|
WORKDIR /app
|
2024-07-26 17:17:03 -04:00
|
|
|
COPY . .
|
|
|
|
|
2024-07-25 12:55:48 -04:00
|
|
|
RUN npm i && npm run build
|
|
|
|
|
|
|
|
ENV HOST="http://localhost:11000"
|
|
|
|
ENV ID=""
|
|
|
|
ENV SECRET=""
|
|
|
|
ENV API_ENDPOINT="http://localhost:8080/v1"
|
|
|
|
ENV API_KEY="none"
|
|
|
|
ENV TEXT_MODEL="gpt-4"
|
|
|
|
ENV CREATE_IMAGE_MODEL="stablediffusion-cpp"
|
|
|
|
ENV ANALYZE_IMAGE_MODEL="gpt-4-vision-preview"
|
|
|
|
ENV TEMPERATURE=1
|
|
|
|
ENV ALLOWED_CHAT=""
|
|
|
|
ENV SAFE_WORD="\\"
|
|
|
|
|
2024-07-26 17:17:03 -04:00
|
|
|
CMD ["npm", "run", "start"]
|