-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (16 loc) · 833 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM postgres:16.2
### PostgreSQL container with the pguint extension
### Update the package list and install the extension build dependencies
RUN apt-get update && \
apt-get install -y \
build-essential git postgresql-server-dev-16 python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/* # Clean up the package list
### Clone the extension source code from GitHub
RUN git clone -b master --depth=1 https://github.com/petere/pguint.git /pguint
### Set the working directory to the extension source code
WORKDIR /pguint
### Build and install the extension, then remove the source code
RUN make && make install && rm -rf /pguint
### Clean up build dependencies of the extension
# RUN apt-get purge -y build-essential git postgresql-server-dev-16 python3 && \
# apt-get autoremove -y && apt-get clean all -y