-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59fdc10
commit 094de7e
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
FROM ubuntu:latest | ||
COPY wild.py / | ||
# Pull the minimal Ubuntu image | ||
FROM us-central1-docker.pkg.dev/panw-utd-public-cloud/utd-demo-images/utd-cnsp/ubuntu:malware | ||
|
||
# Nginx already present in base image. Just copy the Nginx config | ||
COPY default /etc/nginx/sites-available/default | ||
|
||
# Install a vulnerable package | ||
RUN apt update -y | ||
RUN apt install python3-pip git curl wget node-hawk node-minimist -y | ||
RUN pip3 --no-cache-dir install --upgrade awscli boto3 | ||
RUN pip3 install gitpython azure-identity azure-storage-blob | ||
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash | ||
EXPOSE 8080 | ||
ENTRYPOINT [ "python3", "wild.py"] | ||
|
||
# Expose the port for access | ||
EXPOSE 80/tcp | ||
|
||
# Run the Nginx server | ||
CMD /opt/entrypoint.sh && /usr/sbin/nginx -g daemon off |