-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile14
18 lines (18 loc) · 1.08 KB
/
Dockerfile14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:22.04
LABEL maintainer="[email protected]"
LABEL build_date="2024-12-09"
WORKDIR /app
RUN apt update -qq && apt-get -y dist-upgrade && apt -y install --no-install-recommends --no-install-suggests nginx libnginx-mod-stream swaks ca-certificates nano wget curl && apt clean && apt -y autoremove
RUN install -d /usr/share/postgresql-common/pgdg
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list
COPY COPYING ./
COPY comparardb /usr/bin/comparardb
COPY copiardb /usr/bin/copiardb
COPY backupdb /usr/bin/backupdb
RUN chmod 777 /usr/bin/comparardb
RUN chmod 777 /usr/bin/copiardb
RUN chmod 777 /usr/bin/backupdb
RUN apt update -qq && apt -y install --no-install-recommends --no-install-suggests postgresql-client-14 && apt clean && apt -y autoremove && rm -rf /var/lib/{apt,dpkg,cache,log}
EXPOSE 80
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]