-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.1 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (28 loc) · 1.1 KB
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
27
28
29
30
31
32
33
34
35
36
FROM debian:12-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV PG_HOME=/opt/pgpro/1c-12
ENV PGDATA=/var/lib/pgpro/1c-12/data
ENV LANG=ru_RU.UTF-8
ENV LC_ALL=ru_RU.UTF-8
WORKDIR /tmp
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates wget gnupg locales tini gosu \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i 's/^# *ru_RU.UTF-8/ru_RU.UTF-8/' /etc/locale.gen \
&& sed -i 's/^# *en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen \
&& dpkg-reconfigure -f noninteractive locales \
&& update-locale LANG=ru_RU.UTF-8
# repo for Postgres Pro 1C 12
RUN wget -O /tmp/pgpro-repo-add.sh https://repo.postgrespro.ru/1c-12/keys/pgpro-repo-add.sh \
&& sh /tmp/pgpro-repo-add.sh \
&& apt-get update \
&& apt-get install -y --no-install-recommends postgrespro-1c-12 \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /docker-entrypoint-initdb.d \
&& mkdir -p /var/lib/pgpro/1c-12/data \
&& chown -R postgres:postgres /var/lib/pgpro
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 5432
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["postgres"]