* use Dockerfile on building DB container

* use hostfiles as start folder
This commit is contained in:
2026-06-16 09:37:35 +03:00
parent 307d4d9509
commit bc83b6de5b
2 changed files with 11 additions and 8 deletions

View File

@ -69,7 +69,8 @@ services:
- user_known_hosts
- composer_auth
db:
image: mariadb:11.8.5
build:
context: ./dockerfiles/db
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456

View File

@ -1,9 +1,11 @@
FROM mariadb
FROM mariadb:11
RUN apt update && apt install -y locales
#RUN apt update && apt install -y locales
#
#RUN sed -i 's/# ru_RU.UTF-8/ru_RU.UTF-8/' /etc/locale.gen
#
#RUN locale-gen
#
#RUN echo "export LANG=ru_RU.UTF-8" > /root/.bashrc
RUN sed -i 's/# ru_RU.UTF-8/ru_RU.UTF-8/' /etc/locale.gen
RUN locale-gen
RUN echo "export LANG=ru_RU.UTF-8" > /root/.bashrc
RUN echo 'cd /hostfiles 2>/dev/null || true' >> /root/.bashrc