SorboBot / Dockerfile
Léo Bourrel
feat: update Dockerfile
5c86995
raw
history blame
807 Bytes
FROM postgres:14.3
WORKDIR /app
RUN apt update && \
apt install -y --no-install-recommends \
build-essential \
python3 \
python3-pip \
python3-dev \
postgresql-server-dev-14 \
libpq-dev \
htop \
git
COPY ./ /app/
RUN pip3 install -r ./requirements.txt
EXPOSE 7860
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=pwd
ENV POSTGRES_PASSWORD=sorbobot
# Install PGVector
WORKDIR /tmp
RUN git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git
WORKDIR /tmp/pgvector
RUN make
RUN make install # may need sudo
WORKDIR /app
COPY "execution.sh" "/usr/local/bin/"
COPY ./docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
ENTRYPOINT ["execution.sh"]
STOPSIGNAL SIGINT
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
CMD ["postgres"]