File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ ARG postgres_version=15rc2
2
+
3
+ # extension builder
4
+ FROM postgres:${postgres_version}-alpine AS extension_builder
5
+
6
+ RUN cd / && mkdir external_extensions && mkdir /external_extensions/sequential-uuids
7
+ COPY lib/sequential-uuids/ /external_extensions/sequential-uuids/
8
+ WORKDIR /external_extensions/sequential-uuids/
9
+
10
+ RUN apk update && apk add build-base icu-dev postgresql-dev
11
+ RUN make clean && make install
12
+
13
+ # main image
14
+ FROM postgres:${postgres_version}-alpine
15
+
16
+ LABEL maintainer="yuxtonline@outlook.com"
17
+
18
+ COPY --from=extension_builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/
19
+ COPY --from=extension_builder /usr/local/share/postgresql/extension /usr/local/share/postgresql/extension
20
+
21
+ RUN echo "CREATE EXTENSION IF NOT EXISTS sequential_uuids;" > /docker-entrypoint-initdb.d/create_sequential_uuids.sql
You can’t perform that action at this time.
0 commit comments