From ba78ee296a99d705bf43a94d52955f9e9a0a9ae8 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Fri, 7 Jun 2024 07:07:46 +0000 Subject: [PATCH] chore: Remove upstream dockerfile directive The arg substitution syntax we use has now made it into the default dockerfile syntax Signed-off-by: bo0tzz --- Dockerfile | 1 - README.md | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be412e0..cd19e78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# syntax=docker/dockerfile-upstream:master ARG CNPG_TAG FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG diff --git a/README.md b/README.md index bf974ca..788d446 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,9 @@ Container images for [cloudnative-pg](https://cloudnative-pg.io/) with the [pgve > initdb: > postInitSQL: > - ALTER SYSTEM SET search_path TO "$user", public, vectors; -> - CREATE EXTENSION IF NOT EXISTS "vectors"; \ No newline at end of file +> - CREATE EXTENSION IF NOT EXISTS "vectors"; + +## Building + +To build the Dockerfile locally, you need to pass the `CNPG_TAG` and `PGVECTORS_TAG` args. For example: +`docker build . --build-arg="CNPG_TAG=16.3" --build-arg="PGVECTORS_TAG=v0.2.1"` \ No newline at end of file