chat / Dockerfile
Denis Platonov
Install pgvector for Chatwoot schema
8a37df3 verified
Raw
History Blame Contribute Delete
793 Bytes
FROM chatwoot/chatwoot:latest
USER root
RUN if command -v apt-get >/dev/null 2>&1; then \
apt-get update && \
apt-get install -y --no-install-recommends postgresql postgresql-contrib redis-server supervisor tini gosu ca-certificates && \
rm -rf /var/lib/apt/lists/*; \
elif command -v apk >/dev/null 2>&1; then \
apk add --no-cache postgresql postgresql-contrib postgresql-pgvector redis supervisor tini su-exec bash ca-certificates; \
else \
echo "Unsupported base image package manager" >&2; exit 1; \
fi
ENV PORT=7860
ENV RAILS_ENV=production
ENV NODE_ENV=production
ENV INSTALLATION_ENV=docker
ENV RAILS_LOG_TO_STDOUT=true
ENV RAILS_SERVE_STATIC_FILES=true
COPY start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE 7860
ENTRYPOINT ["/start.sh"]