commit aa461e09e763aaf636f8f0d6453276992c3c137b Author: alexander Date: Tue Jul 7 15:06:33 2020 +0300 Initial commit diff --git a/12.3-alpine.Dockerfile b/12.3-alpine.Dockerfile new file mode 100644 index 0000000..0f8c255 --- /dev/null +++ b/12.3-alpine.Dockerfile @@ -0,0 +1,14 @@ +FROM postgres:12.3-alpine + +# Install locales +RUN apk --no-cache add ca-certificates wget && \ + wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \ + wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-2.25-r0.apk && \ + wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-bin-2.25-r0.apk && \ + wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-i18n-2.25-r0.apk && \ + apk add glibc-bin-2.25-r0.apk glibc-i18n-2.25-r0.apk glibc-2.25-r0.apk + +# Set Russian locale (UTF-8 encoding) +RUN /usr/glibc-compat/bin/localedef -i ru_RU -c -f UTF-8 ru_RU.UTF-8 +ENV LANG=ru_RU.UTF-8 +ENV LANGUAGE=ru_RU.UTF-8 diff --git a/README.md b/README.md new file mode 100644 index 0000000..fb47684 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# postgresru +PostgreSQL image with Russain Locale. [Published here](https://hub.docker.com/repository/docker/sychev1993/postgresru/general). \ No newline at end of file