Tailchat-Assistant/Dockerfile

26 lines
614 B
Docker
Raw Normal View History

2024-07-25 12:55:48 -04:00
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"]