diff --git a/docker/services/Dockerfile b/docker/services/Dockerfile index e79f74b..f758538 100644 --- a/docker/services/Dockerfile +++ b/docker/services/Dockerfile @@ -5,8 +5,17 @@ WORKDIR /usr/agent COPY . /usr/agent +ENV LC_ALL=en_US.UTF-8 +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US.UTF-8 +ENV PYTHONIOENCODING=UTF-8 + RUN apt-get update RUN apt-get dist-upgrade -y +RUN apt-get install -y locales + +RUN locale-gen en_US.UTF-8 + RUN apt-get install -y curl python3-pip git RUN curl -sSL https://get.docker.com/ | sh RUN python3 -m pip install -U pip diff --git a/docker/services/entrypoint.sh b/docker/services/entrypoint.sh index cac1c8c..615b205 100755 --- a/docker/services/entrypoint.sh +++ b/docker/services/entrypoint.sh @@ -11,4 +11,4 @@ TRAINS_API_HOST=${TRAINS_API_HOST:-"http://$TRAINS_HOST_IP:8008"} echo $TRAINS_FILES_HOST $TRAINS_WEB_HOST $TRAINS_API_HOST 1>&2 python3 -m pip install -q -U "trains-agent${TRAINS_AGENT_UPDATE_VERSION}" -trains-agent daemon --services-mode --queue services --create-queue --docker $TRAINS_AGENT_DEFAULT_BASE_DOCKER --cpu-only $TRAINS_AGENT_EXTRA_ARGS +trains-agent daemon --services-mode --queue services --create-queue --docker "$TRAINS_AGENT_DEFAULT_BASE_DOCKER" --cpu-only $TRAINS_AGENT_EXTRA_ARGS