Skip to content

Commit

Permalink
Merge pull request #13 from wpears/builder-image
Browse files Browse the repository at this point in the history
Trim unneeded bits from builder dockerfile
  • Loading branch information
wpears authored Sep 14, 2023
2 parents cfcfc49 + 1676bc7 commit 9fe5d73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docker/builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
File renamed without changes.

0 comments on commit 9fe5d73

Please sign in to comment.