Skip to content

Commit

Permalink
FIX locale
Browse files Browse the repository at this point in the history
Not sure what changed, but the locale is not problem generated in the
base image anymore. Also, pg-15.3 image has been removed from
DockerHub's README for postgres, so let's move to 15.4.
  • Loading branch information
oelmekki committed Oct 6, 2023
1 parent e8f051a commit 9bed1e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM postgres:15.3
FROM postgres:15.4
MAINTAINER Olivier El Mekki <olivier@el-mekki.com>

RUN apt update && apt install -y build-essential curl postgresql-server-dev-15
RUN curl https://ftp.postgresql.org/pub/source/v15.3/postgresql-15.3.tar.bz2 -o /postgresql-15.3.tar.bz2
RUN cd / && tar xvf postgresql-15.3.tar.bz2
RUN cd /postgresql-15.3/contrib/cube && sed -i 's/#define CUBE_MAX_DIM (100)/#define CUBE_MAX_DIM (350)/' cubedata.h && \
RUN curl https://ftp.postgresql.org/pub/source/v15.4/postgresql-15.4.tar.bz2 -o /postgresql-15.4.tar.bz2
RUN cd / && tar xvf postgresql-15.4.tar.bz2
RUN cd /postgresql-15.4/contrib/cube && sed -i 's/#define CUBE_MAX_DIM (100)/#define CUBE_MAX_DIM (350)/' cubedata.h && \
USE_PGXS=true make && USE_PGXS=true make install
RUN echo -e "\nen_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen

0 comments on commit 9bed1e8

Please sign in to comment.