forked from pgvector/pgvector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: point to a real docker tag (#2)
* fix: point to a real docker tag * fix: ARG PG_TAG is not working for some reason * fix: source link to repo
- Loading branch information
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
regression.* | ||
*.o | ||
*.so | ||
.github/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG PG_MAJOR="13" | ||
ARG PG_TAG="13-13.3" | ||
|
||
FROM postgis/postgis:${PG_MAJOR} | ||
FROM postgis/postgis:13-3.3 | ||
# FROM postgis/postgis:${PG_TAG} | ||
|
||
LABEL org.opencontainers.image.source "https://github.com/x-b-e/server-pg" | ||
LABEL org.opencontainers.image.source "https://github.com/x-b-e/pgvector" | ||
LABEL org.opencontainers.image.description "XBE server postgres with postgis, pgvector" | ||
LABEL org.opencontainers.image.licenses "PostgreSQL License" | ||
|
||
ARG PG_MAJOR | ||
|
||
ENV PG_MAJOR=${PG_MAJOR} | ||
# ARG PG_MAJOR | ||
# ENV PG_MAJOR=${PG_MAJOR} | ||
ENV PG_MAJOR=13 | ||
|
||
COPY . /tmp/pgvector | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends build-essential postgresql-server-dev-${PGMAJOR} && \ | ||
apt-get install -y --no-install-recommends build-essential postgresql-server-dev-${PG_MAJOR} && \ | ||
cd /tmp/pgvector && \ | ||
make clean && \ | ||
make OPTFLAGS="" && \ | ||
make install && \ | ||
mkdir /usr/share/doc/pgvector && \ | ||
cp LICENSE README.md /usr/share/doc/pgvector && \ | ||
rm -r /tmp/pgvector && \ | ||
apt-get remove -y build-essential postgresql-server-dev-${PGMAJOR} && \ | ||
apt-get remove -y build-essential postgresql-server-dev-${PG_MAJOR} && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* |