Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set locale for the apache docker file as well

Roland Geiderefc953d597d0
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index c9254ab4a..b387dd370 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -12,6 +12,14 @@ FROM wger/base
MAINTAINER Roland Geider <[email protected]>
EXPOSE 80
+# Set locale to UTF8, otherwise problems with the encoding can occur, e.g.
+# when using the invoke/wger commands and bower
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+
# Install dependencies
RUN apt-get install -y apache2 libapache2-mod-wsgi-py3
diff --git a/extras/docker/development-fedora/Dockerfile b/extras/docker/development-fedora/Dockerfile
index ce8e4bae7..714206cab 100644
--- a/extras/docker/development-fedora/Dockerfile
+++ b/extras/docker/development-fedora/Dockerfile
@@ -17,7 +17,8 @@ RUN dnf update;\
nodejs npm libjpeg-turbo-devel zlib-devel git \
tmux sudo redhat-rpm-config gcc python-imaging
-# Set locale to UTF8, otherwise problems with the encoding can occur
+# Set locale to UTF8, otherwise problems with the encoding can occur, e.g.
+# when using the invoke/wger commands and bower
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
diff --git a/extras/docker/development/Dockerfile b/extras/docker/development/Dockerfile
index 46ea2406f..34150f52d 100644
--- a/extras/docker/development/Dockerfile
+++ b/extras/docker/development/Dockerfile
@@ -15,7 +15,8 @@ FROM wger/base
MAINTAINER Roland Geider <[email protected]>
EXPOSE 8000
-# Set locale to UTF8, otherwise problems with the encoding can occur
+# Set locale to UTF8, otherwise problems with the encoding can occur, e.g.
+# when using the invoke/wger commands and bower
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en