From ba8d15c8c6f3d0a1057256b53a23f2e1635ae3b1 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Fri, 13 May 2022 18:13:30 -0500 Subject: [PATCH] move env variables to top --- .../credentials/build/credentials/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tutorcredentials/templates/credentials/build/credentials/Dockerfile b/tutorcredentials/templates/credentials/build/credentials/Dockerfile index 400aa17..07d03f1 100644 --- a/tutorcredentials/templates/credentials/build/credentials/Dockerfile +++ b/tutorcredentials/templates/credentials/build/credentials/Dockerfile @@ -1,5 +1,11 @@ FROM docker.io/ubuntu:20.04 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 +ENV DJANGO_SETTINGS_MODULE credentials.settings.production + + RUN apt update && \ apt install -y curl git-core language-pack-en libmysqlclient-dev libssl-dev python3 python3-pip python3-venv @@ -12,12 +18,6 @@ RUN python3 -m venv /openedx/venv/ ENV PATH "/openedx/venv/bin:$PATH" RUN pip install setuptools==44.1.0 pip==20.3.4 -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 -ENV DJANGO_SETTINGS_MODULE credentials.settings.production - # Install credentials ARG CREDENTIALS_REPOSITORY=https://github.com/edx/credentials.git