Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Fix file ownership for postgres and kong containers

François Vaux704ff333f6e7
diff --git a/docker/dockerfiles/kong/Dockerfile b/docker/dockerfiles/kong/Dockerfile
index 4597f90358e..8fa064d13de 100644
--- a/docker/dockerfiles/kong/Dockerfile
+++ b/docker/dockerfiles/kong/Dockerfile
@@ -1,6 +1,6 @@
FROM kong:2.1
-COPY kong.yml /var/lib/kong/kong.yml
+COPY --chown=kong:nogroup kong.yml /var/lib/kong/kong.yml
# Build time defaults
ARG build_KONG_DATABASE=off
diff --git a/docker/dockerfiles/postgres/Dockerfile b/docker/dockerfiles/postgres/Dockerfile
index cd03b29b241..319a5ccd680 100644
--- a/docker/dockerfiles/postgres/Dockerfile
+++ b/docker/dockerfiles/postgres/Dockerfile
@@ -1,8 +1,8 @@
FROM supabase/postgres:0.13.0
-COPY 00-initial-schema.sql /docker-entrypoint-initdb.d/00-initial-schema.sql
-COPY auth-schema.sql /docker-entrypoint-initdb.d/auth-schema.sql
-COPY storage-schema.sql /docker-entrypoint-initdb.d/storage-schema.sql
+COPY --chown=postgres 00-initial-schema.sql /docker-entrypoint-initdb.d/00-initial-schema.sql
+COPY --chown=postgres auth-schema.sql /docker-entrypoint-initdb.d/auth-schema.sql
+COPY --chown=postgres storage-schema.sql /docker-entrypoint-initdb.d/storage-schema.sql
# Build time defaults
ARG build_POSTGRES_DB=postgres