Skip to content

Commit ca0e1ca

Browse files
committed
Revert "[docker]: locale pt-br"
This reverts commit f89b3fe.
1 parent b6e6202 commit ca0e1ca

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ RUN apt-get update && apt-get install -y \
1919
libgmp-dev \
2020
libzip-dev \
2121
redis-server \
22-
locales \
2322
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
2423
&& docker-php-ext-install mysqli pdo_mysql sockets gd zip gmp bcmath \
2524
&& pecl install redis \
2625
&& docker-php-ext-enable redis \
27-
&& sed -i -e 's/# pt_BR.UTF-8 UTF-8/pt_BR.UTF-8 UTF-8/' /etc/locale.gen \
28-
&& locale-gen \
2926
&& apt-get clean && rm -rf /var/lib/apt/lists/*
3027

3128
FROM base AS builder
@@ -53,10 +50,7 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
5350
RUN chown -R www-data:www-data /app \
5451
&& chmod -R 755 /app
5552

56-
ENV TZ=America/Sao_Paulo
57-
ENV LANG=pt_BR.UTF-8
58-
ENV LANGUAGE=pt_BR:pt
59-
ENV LC_ALL=pt_BR.UTF-8
53+
ENV TZ=UTC
6054

6155
EXPOSE 8077
6256

docker-entrypoint.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ else
117117
log_success "Timezone set to UTC for both system and PHP"
118118
fi
119119

120-
# Configure PHP locale settings for Brazilian Portuguese
121-
log_info "Configurando locale do PHP para português do Brasil (pt_BR)..."
122-
echo "
123-
intl.default_locale = pt_BR
124-
date.timezone = $TZ
125-
" > /usr/local/etc/php/conf.d/locale.ini
126-
log_success "Locale do PHP configurado para pt_BR"
127-
128120
# Create or update .env file with environment variables
129121
log_info "Setting up environment variables in /app/.env..."
130122
cat > /app/.env << EOL

0 commit comments

Comments
 (0)