1
- ARG PG_SERVER_VERSION=11
1
+ ARG PG_SERVER_VERSION=9.6
2
2
ARG CITUS=9.4
3
3
4
4
FROM postgres:${PG_SERVER_VERSION}
@@ -10,15 +10,11 @@ ENV PG_SERVER_VERSION=${PG_SERVER_VERSION:-12}
10
10
ENV CITUS_VERSION=9.4
11
11
12
12
RUN apt-get update \
13
- && apt-get install --no-install-recommends -y wget make gcc unzip sudo \
13
+ && apt-get install --no-install-recommends -y wget make gcc unzip sudo git curl libc6-dev apt-transport-https ca-certificates \
14
14
&& apt-get install --no-install-recommends -y postgresql-server-dev-${PG_SERVER_VERSION} \
15
15
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-repack \
16
16
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
17
- && apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
18
- && apt-get install --no-install-recommends -y apt-transport-https \
19
- && apt-get install --no-install-recommends -y ca-certificates \
20
- && apt-get install --no-install-recommends -y git \
21
- && apt-get -y --no-install-recommends install curl
17
+ && apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym
22
18
23
19
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
24
20
# pg_hint_plan for Postgres 12 does not supported yet, use master: https://github.com/ossc-db/pg_hint_plan/issues/37
@@ -67,7 +63,7 @@ RUN apt-get -y install postgresql-${PG_SERVER_VERSION}-cron
67
63
68
64
# Reduce images size.
69
65
RUN rm -rf /tmp/* \
70
- && apt-get purge -y --auto-remove gcc make wget unzip curl apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
66
+ && apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
71
67
&& apt-get clean -y autoclean \
72
68
&& rm -rf /var/lib/apt/lists/* \
73
69
&& rm -rf /pg_show_plans \
0 commit comments