You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
502 B

# Use the official PostgreSQL image from the Docker Hub
FROM postgres:16
# Add the init.sql script to the Docker image
COPY init.sql /docker-entrypoint-initdb.d/
# Set environment variables for PostgreSQL
ENV POSTGRES_DB=coding-challenge
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=mypassword123!
# To build and run this container run the following commands
# docker build -t enpal-coding-challenge-db .
# docker run --name enpal-coding-challenge-db -p 5432:5432 -d enpal-coding-challenge-db