Dockerfile aktualisiert
Some checks failed
Create postgresql docker image / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Create postgresql docker image / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,4 +1,3 @@
|
|||||||
# vim:set ft=dockerfile:
|
|
||||||
#
|
#
|
||||||
# Copyright The CloudNativePG Contributors
|
# Copyright The CloudNativePG Contributors
|
||||||
#
|
#
|
||||||
@@ -14,17 +13,17 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
FROM postgres:16.9-bookworm
|
FROM postgres:16.10-bookworm
|
||||||
|
|
||||||
# Do not split the description, otherwise we will see a blank space in the labels
|
# Do not split the description, otherwise we will see a blank space in the labels
|
||||||
LABEL name="PostgreSQL Container Images" \
|
LABEL name="PostgreSQL Container Images" \
|
||||||
vendor="The CloudNativePG Contributors" \
|
vendor="The CloudNativePG Contributors" \
|
||||||
version="${PG_VERSION}" \
|
version="${PG_VERSION}" \
|
||||||
release="2" \
|
release="1" \
|
||||||
summary="PostgreSQL Container images." \
|
summary="PostgreSQL Container images." \
|
||||||
description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.9-bookworm."
|
description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.10-bookworm."
|
||||||
|
|
||||||
LABEL org.opencontainers.image.description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.9-bookworm."
|
LABEL org.opencontainers.image.description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.10-bookworm."
|
||||||
|
|
||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
|
|
||||||
@@ -33,10 +32,11 @@ ENV LANG de_DE.utf8
|
|||||||
|
|
||||||
# Install additional extensions
|
# Install additional extensions
|
||||||
RUN set -xe; \
|
RUN set -xe; \
|
||||||
|
rm -fr /var/lib/postgresql/data; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
if apt list --upgradable 2>/dev/null | grep -q '^postgres'; then \
|
if apt-get -s upgrade | grep "^Inst postgres"; then \
|
||||||
echo "ERROR: Upgradable postgres packages found!"; \
|
echo "ERROR: Upgradable postgres packages found!"; \
|
||||||
apt list --upgradable 2>/dev/null | grep '^postgres'; \
|
apt-get -s upgrade | grep "^Inst postgres"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
Reference in New Issue
Block a user