-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.Dockerfile
26 lines (24 loc) · 1.11 KB
/
db.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM postgres:15.5-bookworm
# Installing system dependencies
# hadolint ignore=DL3008
RUN rm -rfv /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /root/.cache/* && \
apt-get clean -y && \
apt-get update --fix-missing -o Acquire::CompressionTypes::Order::=gz && \
apt-get install -y --no-install-recommends \
locales \
tzdata \
nano && \
apt-get clean -y && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# en_AU.UTF-8 UTF-8/en_AU.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# ko_KR.UTF-8 UTF-8/ko_KR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8 && \
echo "LANGUAGE=en_US.UTF-8" >> /etc/default/locale && \
echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale && \
echo "alias ls='ls -aF --group-directories-first --color=auto'" >> /root/.bashrc && \
printf "alias ll='ls -alhF --group-directories-first --color=auto'\n" >> /root/.bashrc && \
rm -rfv /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /root/.cache/*
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=en_US.UTF-8