freddyaboulton HF Staff commited on
Commit
c0f0499
·
verified ·
1 Parent(s): 2833ba9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
  # Use pgvector with Postgres 17 as the base image
2
  FROM pgvector/pgvector:pg17
3
 
4
- RUN useradd -m -u 1000 postgres
 
 
 
5
 
6
  # Set environment variable for PostgreSQL password and data directory
7
  ENV POSTGRES_PASSWORD=postgres
 
1
  # Use pgvector with Postgres 17 as the base image
2
  FROM pgvector/pgvector:pg17
3
 
4
+ USER postgres
5
+
6
+ RUN mkdir -p /data
7
+ RUN chmod 777 /data
8
 
9
  # Set environment variable for PostgreSQL password and data directory
10
  ENV POSTGRES_PASSWORD=postgres