Skip to content

Commit d53113f

Browse files
committed
fix: Add version extraction to /app/version
1 parent 125bee1 commit d53113f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Containerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ COPY --from=builder /usr/local/share/postgresql/extension/vchord* /usr/local/sha
6969
RUN chmod 644 /usr/local/share/postgresql/extension/vchord* && \
7070
chmod 755 /usr/local/lib/postgresql/vchord.so
7171

72+
# Extract version
73+
RUN mkdir -p /app && \
74+
pkg query '%v' postgresql${PG_VERSION}-server | sed 's/_.*$//' > /app/version
75+
7276
# Copy init scripts for extensions
7377
COPY docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
7478
RUN chmod 644 /docker-entrypoint-initdb.d/*

0 commit comments

Comments
 (0)