Skip to content

Commit aaa0404

Browse files
authored
Merge pull request OWASP#141 from bilalk88/main
red team Dockerfile update for drupal:8.5.0 resolved 404 error while running apt-get update
2 parents 2d8b968 + d1e7b73 commit aaa0404

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

redblueapp/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
FROM drupal:8.5.0
22

3+
# Use sed to remove the specified lines from sources.list as these deb.debian.org returning 404 error
4+
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch main/d' /etc/apt/sources.list
5+
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch-updates main/d' /etc/apt/sources.list
6+
RUN sed -i '/deb http:\/\/security.debian.org stretch\/updates main/d' /etc/apt/sources.list
7+
8+
# Use echo to append the repository lines to the sources.list file to fetch the packages from archive
9+
RUN echo "deb http://archive.debian.org/debian/ stretch main" >> /etc/apt/sources.list
10+
RUN echo "deb http://archive.debian.org/debian-security/ stretch/updates main" >> /etc/apt/sources.list
11+
312
RUN apt-get update
413
RUN apt-get -y install supervisor
514
RUN apt-get -y install iputils-ping

redblueapp/buildAndRun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
docker build -t securecodingdojo/redblueapp .
2-
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp
2+
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp

0 commit comments

Comments
 (0)