mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 12:38:46 +02:00
Update Dockerfile
This commit is contained in:
@@ -38,18 +38,7 @@ USER root
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Set shell
|
# Set shell
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-"]
|
||||||
|
|
||||||
# hadolint ignore=SC2013,DL3015
|
|
||||||
RUN \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y gnupg gnupg2 gnupg1 wget lsb-core && \
|
|
||||||
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
|
|
||||||
curl -s -S https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
|
||||||
printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d && \
|
|
||||||
apt-get update -y && \
|
|
||||||
apt-get install postgresql-14 libpq-dev postgresql-common -y && \
|
|
||||||
for file in $(grep -sril '/var/lib/postgresql/14/main' /etc); do sed -i "s=/var/lib/postgresql/14/main=/data/postgresql=g" "$file"; done
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 3 Install apps #
|
# 3 Install apps #
|
||||||
|
|||||||
Reference in New Issue
Block a user