move env variables to top

This commit is contained in:
lpm0073 2022-05-13 18:13:30 -05:00
parent 23c735be06
commit ba8d15c8c6

View File

@ -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