Skip to content

Commit

Permalink
Update CentOS 7 container to patch vault repositories (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0d authored Jul 16, 2024
1 parent 53c5fb0 commit 07eb0a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Containerfiles/centos7.Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ ENV APP_DEV_DEPS "requirements/centos7.requirements.txt"

WORKDIR /data

RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

FROM base as install_main_deps
RUN yum update -y && yum clean all

FROM install_main_deps as install_dev_deps

COPY $APP_DEV_DEPS $APP_DEV_DEPS
RUN curl $URL_GET_PIP | $PYTHON && $PIP install -r $APP_DEV_DEPS

Expand Down

0 comments on commit 07eb0a9

Please sign in to comment.