Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the official PostgreSQL image as the base
FROM postgres:latest

# Optional: Set environment variables
ENV POSTGRES_DB=practise
ENV POSTGRES_USER=dbuser
ENV POSTGRES_PASSWORD=dbpassword

# Optional: Copy custom initialization scripts
# COPY ./scripts/init.sh /docker-entrypoint-initdb.d/

# Create a directory inside the container
RUN mkdir -p /scripts

# Copy the contents of the local 'scripts' directory to the container
COPY scripts /scripts


# Expose the PostgreSQL port
EXPOSE 5432