Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliandreslopez authored Jul 12, 2024
1 parent 59fdc10 commit 094de7e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Dockerfile
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

0 comments on commit 094de7e

Please sign in to comment.