26 lines
614 B
Docker
26 lines
614 B
Docker
FROM node:20.12.2-alpine
|
|
|
|
RUN apk update > /dev/null && apk add git > /dev/null
|
|
|
|
RUN git clone https://git.povario.com/powermaker450/Tailchat-Assistant app > /dev/null
|
|
|
|
WORKDIR /app
|
|
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="\\"
|
|
|
|
COPY ./entrypoint.sh ./entrypoint.sh
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
|
ENTRYPOINT ["sh", "-c", "./entrypoint.sh"]
|