File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- ARG PG_SERVER_VERSION=9.6
1
+ ARG PG_SERVER_VERSION=11
2
2
ARG CITUS=9.4
3
3
4
4
FROM postgres:${PG_SERVER_VERSION}
@@ -10,7 +10,7 @@ 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 git curl libc6-dev apt-transport-https ca-certificates\
13
+ && apt-get install --no-install-recommends -y wget make gcc unzip sudo git curl libc6-dev apt-transport-https ca-certificates pgxnclient build-essential \
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 \
@@ -61,9 +61,12 @@ WORKDIR /
61
61
# add pg_cron extension
62
62
RUN apt-get -y install postgresql-${PG_SERVER_VERSION}-cron
63
63
64
+ # add postgresql_anonymizer extension
65
+ RUN pgxn install ddlx && pgxn install postgresql_anonymizer
66
+
64
67
# Reduce images size.
65
68
RUN rm -rf /tmp/* \
66
- && apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
69
+ && apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} pgxnclient build-essential \
67
70
&& apt-get clean -y autoclean \
68
71
&& rm -rf /var/lib/apt/lists/* \
69
72
&& rm -rf /pg_show_plans \
You can’t perform that action at this time.
0 commit comments