Skip to content

Instantly share code, notes, and snippets.

@bl4de
Created August 3, 2021 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bl4de/6015a9214d8976afaa868dc3d0ca0b5f to your computer and use it in GitHub Desktop.
Save bl4de/6015a9214d8976afaa868dc3d0ca0b5f to your computer and use it in GitHub Desktop.
FROM python:3.7-stretch as base
RUN mkdir /base
WORKDIR /base
RUN apt-get update
RUN apt-get install -y wget
RUN apt-get -y install libnss3
RUN apt -y install chromium
RUN apt -y install chromedriver
FROM base
EXPOSE 5000
#caches the pip install step
ADD requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
ADD . /app
RUN mkdir screenshots
#Remove windows file endings from the script file
RUN cp startApps.sh startApps.sh.tmp
RUN awk '{ sub("\r$", ""); print }' startApps.sh.tmp > startApps.sh
RUN chmod +x startApps.sh
CMD ["/app/startApps.sh"]
#CMD python vuln-screenshot/app.py
@bl4de
Copy link
Author

bl4de commented Aug 3, 2021

This is Dockerfile for Detectify Crowdsource vuln-screenshot application, modified for Apple computers with M1 chip

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