build with go v1.25 (#814)
This commit is contained in:
committed by
GitHub
parent
e0fcd058df
commit
16f88a1336
@@ -1,7 +1,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Builder Stage
|
||||
# ------------------------------------------------------------------------------
|
||||
FROM golang:1.24-bullseye AS build
|
||||
FROM golang:1.25-trixie AS build
|
||||
|
||||
# Set default build argument for CGO_ENABLED
|
||||
ARG CGO_ENABLED=0
|
||||
@@ -21,7 +21,7 @@ RUN make build
|
||||
# ------------------------------------------------------------------------------
|
||||
# Fetch signing key
|
||||
# ------------------------------------------------------------------------------
|
||||
FROM debian:bullseye-slim AS keyring
|
||||
FROM debian:trixie-slim AS keyring
|
||||
ADD https://www.postgresql.org/media/keys/ACCC4CF8.asc keyring.asc
|
||||
RUN apt-get update && \
|
||||
apt-get install -qq --no-install-recommends gpg
|
||||
@@ -30,14 +30,14 @@ RUN gpg -o keyring.pgp --dearmor keyring.asc
|
||||
# ------------------------------------------------------------------------------
|
||||
# Release Stage
|
||||
# ------------------------------------------------------------------------------
|
||||
FROM debian:bullseye-slim
|
||||
FROM debian:trixie-slim
|
||||
|
||||
ARG keyring=/usr/share/keyrings/postgresql-archive-keyring.pgp
|
||||
COPY --from=keyring /keyring.pgp $keyring
|
||||
RUN . /etc/os-release && \
|
||||
echo "deb [signed-by=${keyring}] http://apt.postgresql.org/pub/repos/apt/ ${VERSION_CODENAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
||||
apt-get update && \
|
||||
apt-get install -qq --no-install-recommends ca-certificates openssl netcat curl postgresql-client
|
||||
apt-get install -qq --no-install-recommends ca-certificates openssl netcat-openbsd curl postgresql-client
|
||||
|
||||
COPY --from=build /build/pgweb /usr/bin/pgweb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user