diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..482a747 --- /dev/null +++ b/Dockerfile @@ -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