Skip to content

Commit dbe3a5e

Browse files
committed
Run db as non-root
1 parent 9b260d8 commit dbe3a5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ FROM postgis/postgis:13-master
22

33
# Enable pgcrypto extension on startup
44
RUN sed -i '/EXISTS postgis_tiger_geocoder;*/a CREATE EXTENSION IF NOT EXISTS pgcrypto;' \
5-
/docker-entrypoint-initdb.d/10_postgis.sh
5+
/docker-entrypoint-initdb.d/10_postgis.sh
6+
7+
# Non-root user
8+
USER postgres

0 commit comments

Comments
 (0)