FROM docker.io/library/postgres:15

# Set environment variables
ENV POSTGRES_USER=frangipane
ENV POSTGRES_PASSWORD=secret
ENV POSTGRES_DB=frangipane

# Copy the initialization SQL script
COPY init.sql /docker-entrypoint-initdb.d/
COPY mock_data.sql /docker-entrypoint-initdb.d/

# Expose port 5432
EXPOSE 5432
