Skip to content

Commit

Permalink
Updates psycopg to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Jul 9, 2024
1 parent adc566e commit 76e66cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ case "${subcommand}" in
;;

psycopg)
build_psycopg "${2:-3.1.19}"
build_psycopg "${2:-3.2.1}"
;;

*)
Expand Down
7 changes: 4 additions & 3 deletions psycopg.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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="\
Expand Down Expand Up @@ -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
Expand All @@ -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/"

Expand Down

0 comments on commit 76e66cf

Please sign in to comment.