Просмотр исходного кода

fix(elixir): set locale for docker images (docker)

Elixir wants to run under UTF-8 locales.  Since we changed the base
runner image to Debian, we have to set those variables for it to pick
them up.
Thales Macedo Garitezi 3 лет назад
Родитель
Сommit
54181c49e9
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      deploy/docker/Dockerfile

+ 4 - 0
deploy/docker/Dockerfile

@@ -20,6 +20,10 @@ RUN export PROFILE="$EMQX_NAME" \
 
 FROM $RUN_FROM
 
+# Elixir complains if runs without UTF-8
+ENV LC_ALL=C.UTF-8
+ENV LANG=C.UTF-8
+
 COPY deploy/docker/docker-entrypoint.sh /usr/bin/
 COPY --from=builder /emqx-rel/emqx /opt/emqx