Skip to content

Commit

Permalink
Install lang pack
Browse files Browse the repository at this point in the history
Signed-off-by: Kipchirchir Sigei <[email protected]>
  • Loading branch information
KipSigei committed Jul 5, 2024
1 parent 0e2813b commit 94b6825
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docker/onadata-uwsgi/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,18 @@ FROM debian:bookworm-20240701 AS runtime

ENV DEBIAN_FRONTEND=noninteractive

# Install prerequisite packages and set up locales
# Install prerequisite packages
USER root
RUN echo "deb http://deb.debian.org/debian unstable main non-free contrib" >> /etc/apt/sources.list \
&& apt-get update -q \
&& apt-get install -y --no-install-recommends locales netcat-traditional \
&& locale-gen en_US.UTF-8 \
&& dpkg-reconfigure --frontend=noninteractive locales

# Set environment variables for locale
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
&& apt-get install -y --no-install-recommends locales netcat-traditional

# # Generate and set en_US.UTF-8 locale
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV LC_CTYPE=en_US.UTF-8
RUN dpkg-reconfigure locales


# Install OnaData runtime dependencies
Expand Down

0 comments on commit 94b6825

Please sign in to comment.