File size: 364 Bytes
6e5fe6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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