Skip to content

Commit 395760c

Browse files
committed
add 14
1 parent 73befc9 commit 395760c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

14/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ARG postgres_version=14
2+
3+
# extension builder
4+
FROM postgres:${postgres_version} AS extension_builder
5+
ARG postgres_version=14
6+
7+
RUN cd / && mkdir external_extensions && mkdir /external_extensions/sequential-uuids
8+
COPY lib/sequential-uuids/ /external_extensions/sequential-uuids/
9+
WORKDIR /external_extensions/sequential-uuids/
10+
11+
RUN apt-get update && apt install build-essential libicu-dev postgresql-server-dev-${postgres_version} -y --no-install-recommends
12+
RUN make clean && make install
13+
14+
# main image
15+
FROM postgres:${postgres_version}
16+
ARG pg_version_in_path=14
17+
18+
LABEL maintainer="[email protected]"
19+
20+
COPY --from=extension_builder /usr/lib/postgresql/${pg_version_in_path}/lib /usr/lib/postgresql/${pg_version_in_path}/lib
21+
COPY --from=extension_builder /usr/share/postgresql/${pg_version_in_path}/extension /usr/share/postgresql/${pg_version_in_path}/extension
22+
23+
RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql

0 commit comments

Comments
 (0)