Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim unneeded bits from builder dockerfile #13

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.