diff --git a/build.sh b/build.sh index 83848a5..ed900c4 100755 --- a/build.sh +++ b/build.sh @@ -55,7 +55,7 @@ case "${subcommand}" in ;; psycopg) - build_psycopg "${2:-3.1.19}" + build_psycopg "${2:-3.2.1}" ;; *) diff --git a/psycopg.dockerfile b/psycopg.dockerfile index c10b77a..6053f23 100644 --- a/psycopg.dockerfile +++ b/psycopg.dockerfile @@ -7,9 +7,9 @@ # Purpose: # - Build the psycopg wheel # -FROM python:3.11-slim-bookworm as builder +FROM python:3.11-slim-bookworm AS builder -ARG PSYCOPG_VERSION=3.1.19 +ARG PSYCOPG_VERSION=3.2.1 ARG DEBIAN_FRONTEND=noninteractive ARG BUILD_PACKAGES="\ @@ -38,6 +38,7 @@ RUN set -eux \ --wheel-dir wheels \ # Do not use a binary packge for the package being built --no-binary=psycopg \ + --no-binary="psycopg-c" \ # Do use binary packages for dependencies --prefer-binary \ # Don't cache build files @@ -54,7 +55,7 @@ RUN set -eux \ # Stage: package # Purpose: Holds the compiled .whl files in a tiny image to pull # -FROM alpine:latest as package +FROM alpine:latest AS package LABEL org.opencontainers.image.description="A image with psycopg wheel built in /usr/src/psycopg/"