FROM postgres:14 AS base

RUN apt-get update && apt-get install -y locales-all \
    && locale-gen ru_RU.UTF-8 \
    && update-locale LANG=ru_RU.UTF-8

ENV LANG=ru_RU.UTF-8
ENV LC_NUMERIC=ru_RU.UTF-8

COPY ./db /docker-entrypoint-initdb.d

COPY init.sql /docker-entrypoint-initdb.d/