Skip to content

fix: resolve pipenv dependency installation failure and stale apt index in Dockerfiles#48

Open
piyush140104 wants to merge 1 commit into
OWASP:masterfrom
piyush140104:fix/dockerfile-build-issues
Open

fix: resolve pipenv dependency installation failure and stale apt index in Dockerfiles#48
piyush140104 wants to merge 1 commit into
OWASP:masterfrom
piyush140104:fix/dockerfile-build-issues

Conversation

@piyush140104
Copy link
Copy Markdown
Contributor

@piyush140104 piyush140104 commented Mar 19, 2026

Closes issue: #47

Reviewers

@adrianwinckles

What this PR fixes

  • Moves COPY ./ /app before RUN pipenv install so the Pipfile is present when dependencies are installed.
  • Adds apt-get update && before apt-get install so the package index is fresh before installing packages.

@@ -1,5 +1,5 @@
FROM owasp/modsecurity-crs
RUN apt install -y wget nano curl
RUN apt-get update && apt-get install -y wget nano curl
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN apt-get update && apt-get install -y wget nano curl
RUN apt-get update -qq && apt-get install -qq --no-install-recommends --no-install-suggests -y wget nano curl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants