From 7fe8941748875d2245aeba95a2ef938e3af62ac2 Mon Sep 17 00:00:00 2001 From: Jackson Veroneze Date: Sat, 11 Jan 2025 17:59:58 -0300 Subject: [PATCH] feat: ajustes --- aspnet/Debian/Dockerfile | 9 ++++++--- aspnet/docker-entrypoint.sh | 1 + net/docker-entrypoint.sh | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/aspnet/Debian/Dockerfile b/aspnet/Debian/Dockerfile index ecd51e9..f476e9b 100644 --- a/aspnet/Debian/Dockerfile +++ b/aspnet/Debian/Dockerfile @@ -20,12 +20,15 @@ RUN echo $TZ > /etc/timezone && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ dpkg-reconfigure -f noninteractive tzdata -RUN echo "locales locales/locales_to_be_generated multiselect pt_BR.UTF-8 UTF-8" | debconf-set-selections && \ - rm /etc/locale.gen && \ - dpkg-reconfigure --frontend noninteractive locales +RUN sed -i '/^# *pt_BR.UTF-8 UTF-8/s/^# //' /etc/locale.gen && \ + locale-gen pt_BR.UTF-8 && \ + update-locale LANG=pt_BR.UTF-8 COPY docker-entrypoint.sh /home/app +RUN chmod +x docker-entrypoint.sh && \ + chown -R app:app /home/app + USER app WORKDIR /home/app diff --git a/aspnet/docker-entrypoint.sh b/aspnet/docker-entrypoint.sh index f271dd5..ed2d742 100755 --- a/aspnet/docker-entrypoint.sh +++ b/aspnet/docker-entrypoint.sh @@ -8,6 +8,7 @@ if [ -z "$ASSEMBLY_NAME" ]; then fi echo "- SYSTEM_OPERATION: $OS" +echo "- LANG: $LANG" echo "- ASPNETCORE_ENVIRONMENT: $ASPNETCORE_ENVIRONMENT" echo "- ASPNETCORE_HTTP_PORTS: $ASPNETCORE_HTTP_PORTS" echo "" diff --git a/net/docker-entrypoint.sh b/net/docker-entrypoint.sh index 8bbe2ff..5208e6b 100755 --- a/net/docker-entrypoint.sh +++ b/net/docker-entrypoint.sh @@ -8,6 +8,7 @@ if [ -z "$ASSEMBLY_NAME" ]; then fi echo "- SYSTEM_OPERATION: $OS" +echo "- LANG: $LANG" echo "- ASPNETCORE_ENVIRONMENT: $ASPNETCORE_ENVIRONMENT" echo "" echo "- Run application: $ASSEMBLY_NAME"