这是indexloc提供的服务,不要输入任何密码
Skip to content
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
9 changes: 9 additions & 0 deletions redblueapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM drupal:8.5.0

# Use sed to remove the specified lines from sources.list as these deb.debian.org returning 404 error
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch main/d' /etc/apt/sources.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch-updates main/d' /etc/apt/sources.list
RUN sed -i '/deb http:\/\/security.debian.org stretch\/updates main/d' /etc/apt/sources.list

# Use echo to append the repository lines to the sources.list file to fetch the packages from archive
RUN echo "deb http://archive.debian.org/debian/ stretch main" >> /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian-security/ stretch/updates main" >> /etc/apt/sources.list

RUN apt-get update
RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
Expand Down
2 changes: 1 addition & 1 deletion redblueapp/buildAndRun.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docker build -t securecodingdojo/redblueapp .
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp
Loading