inital commit
This commit is contained in:
10
docker/psql/Dockerfile
Normal file
10
docker/psql/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM postgres:14
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install python3 \
|
||||
python3-pip \
|
||||
postgresql-plpython3-14
|
||||
|
||||
RUN python3 -m pip install sentence-transformers
|
||||
|
||||
ADD init.sql /docker-entrypoint-initdb.d
|
||||
1
docker/psql/init.sql
Normal file
1
docker/psql/init.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE EXTENSION plpython3u
|
||||
3
docker/psql/setup.sh
Normal file
3
docker/psql/setup.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
pip install sentence-transformers
|
||||
|
||||
apt-get update && apt-get install postgresql-plpython3
|
||||
Reference in New Issue
Block a user