Spaces:
Runtime error
Runtime error
File size: 397 Bytes
53ec6bf 894d3aa 53ec6bf c4bae31 53ec6bf 8295cf0 53ec6bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use the official PostgreSQL image from Docker Hub
FROM phidata/pgvector:16
# Set environment variables
ENV POSTGRES_DB=ai
ENV POSTGRES_USER=ai
ENV POSTGRES_PASSWORD=ai
ENV PGDATA=/var/lib/postgresql/data/pgdata
# Expose the PostgreSQL port
EXPOSE 7860
# Use a volume for PostgreSQL data
VOLUME ["/var/lib/postgresql/data"]
# The default command to run the PostgreSQL server
CMD ["postgres"]
|