to amp amp

This commit is contained in:
Bernhard Radermacher
2026-02-26 11:48:04 +01:00
parent 8e539d262b
commit 710934a530

View File

@@ -1,31 +1,31 @@
FROM debian:trixie-slim FROM debian:trixie-slim
RUN set -eux; \ RUN set -eux && \
groupadd -r postgres --gid=5432; \ groupadd -r postgres --gid=5432 && \
useradd -r -g postgres --uid=5432 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; \ useradd -r -g postgres --uid=5432 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres && \
install --verbose --directory --owner postgres --group postgres --mode 1755 /var/lib/postgresql install --verbose --directory --owner postgres --group postgres --mode 1755 /var/lib/postgresql
RUN apt-get update; \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
openssh-server \ openssh-server \
sudo \ sudo \
; \ && \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/* && \
echo "postgres ALL = (ALL) NOPASSWD:ALL" >> /etc/sudoers; \ echo "postgres ALL = (ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "X11Forwarding no" >> /etc/ssh/sshd_config; \ echo "X11Forwarding no" >> /etc/ssh/sshd_config && \
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config; \ echo "PasswordAuthentication no" >> /etc/ssh/sshd_config && \
echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
RUN set -eux; \ RUN set -eux && \
grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \ grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker && \
sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; \ sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker && \
! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \ ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker && \
apt-get update; \ apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
locales; \ locales && \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/* && \
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; \ echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen; \ locale-gen && \
locale -a | grep 'en_US.utf8' locale -a | grep 'en_US.utf8'
ENV LANG=en_US.utf8 ENV LANG=en_US.utf8