diff --git a/docker/builder/Dockerfile b/docker/builder/Dockerfile index 1f3164d81d9..166364fd5f1 100644 --- a/docker/builder/Dockerfile +++ b/docker/builder/Dockerfile @@ -14,22 +14,16 @@ ENV BUILD_DIR /src/consumerfinance.gov RUN mkdir -p ${BUILD_DIR} && chmod 777 ${BUILD_DIR} WORKDIR ${BUILD_DIR} -# Sets a consistent $HOME no matter which user the container runs under. This -# prevents permissions issues caused by Docker's default `/` home directory. -ENV HOME /tmp/dfd-home -RUN mkdir -p ${HOME} && chmod 777 ${HOME} - # Install all build requirements including Python 3 and the latest # versions of the Python packages pip, setuptools, and wheel. Configure # Python 3 to be enabled at login. RUN yum -y update && \ yum install -y centos-release-scl && \ yum install -y rh-python38 gcc git && \ - echo "source scl_source enable rh-python38" > /etc/profile.d/scl_python.sh && \ source /etc/profile && \ pip install --no-cache-dir -U pip setuptools wheel && \ pip3 install --no-cache-dir -U pip setuptools wheel -COPY _build.sh docker-entrypoint.sh ./ +COPY call_create.sh docker-entrypoint.sh ./ ENTRYPOINT ["./docker-entrypoint.sh"] diff --git a/docker/builder/_build.sh b/docker/builder/call_create.sh similarity index 100% rename from docker/builder/_build.sh rename to docker/builder/call_create.sh