Skip to content

Commit

Permalink
update Dockerfile to postgres16
Browse files Browse the repository at this point in the history
  • Loading branch information
monodera committed Dec 21, 2024
1 parent 0ad8304 commit b0ed833
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Use the official Docker Hub Postgres 10.6 image
# FROM postgres:10.6
FROM postgres:12
# FROM postgres:12
FROM postgres:16

# Set environment variables
ENV POSTGRES_USER ""
Expand All @@ -11,8 +12,11 @@ ENV POSTGRES_DB ""
RUN apt-get update && apt-get install -y \
git \
build-essential \
liblz4-dev \
libreadline-dev \
libzstd-dev \
zlib1g-dev \
postgresql-server-dev-12
postgresql-server-dev-16

# Clone the q3c extension from GitHub
RUN git clone https://github.com/segasai/q3c.git
Expand All @@ -31,4 +35,4 @@ EXPOSE 5432
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]

# Set the default command to run when starting the container
CMD ["postgres"]
CMD ["postgres"]

0 comments on commit b0ed833

Please sign in to comment.