postgres / Dockerfile
bpandey23's picture
Update Dockerfile
7d32e22 verified
raw
history blame
453 Bytes
# Use the latest Ubuntu image as the base
FROM ubuntu:latest
# Update the package lists and install PostgreSQL
RUN apt-get update && apt-get install -y postgresql-13 postgresql-client-13
# Copy the entrypoint script to the container
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Expose the default PostgreSQL port
EXPOSE 5432
# Set the ENTRYPOINT to the entrypoint script
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]