Skip to content

Commit 489c31c

Browse files
committed
chore(docker): run dev clickhouse migrator as non-root
1 parent 4332f8c commit 489c31c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal-packages/clickhouse/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ COPY ./schema ./schema
99
ENV GOOSE_DRIVER=clickhouse
1010
ENV GOOSE_DBSTRING="tcp://default:password@clickhouse:9000"
1111
ENV GOOSE_MIGRATION_DIR=./schema
12+
13+
# Run migrations as non-root (dev-only migration helper; goose needs no root).
14+
USER nobody
1215
CMD ["goose", "up"]

0 commit comments

Comments
 (0)