Skip to content

Commit 27b330e

Browse files
committed
refactor: streamline initdb script permissions in Dockerfile
1 parent 71c7c0a commit 27b330e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

docker/postgres-pgvector/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ RUN if [ -z "${PGVECTOR_VERSION}" ]; then \
2626
&& rm -rf /tmp/pgvector
2727

2828

29-
COPY --chown=postgres:postgres initdb /docker-entrypoint-initdb.d/
30-
RUN find /docker-entrypoint-initdb.d -type d -exec chmod 555 {} \; \
31-
&& find /docker-entrypoint-initdb.d -type f -exec chmod 444 {} \;
29+
COPY --chown=postgres:postgres --chmod=0555 initdb /docker-entrypoint-initdb.d
3230

3331
USER postgres

0 commit comments

Comments
 (0)