| # Use PostgreSQL 17beta2-bullseye image | |
| FROM postgres:17beta2-bullseye | |
| # Set environment variables | |
| ENV POSTGRES_DB=mydb | |
| ENV POSTGRES_USER=myuser | |
| ENV POSTGRES_PASSWORD=mypassword | |
| # Copy CSV files to the container | |
| COPY *.csv /tmp/ | |
| # Copy SQL script to create tables and import data | |
| COPY init.sql /docker-entrypoint-initdb.d/ | |
| # Expose PostgreSQL port | |
| EXPOSE 5432 | |