Created
August 3, 2021 20:48
-
-
Save bl4de/6015a9214d8976afaa868dc3d0ca0b5f to your computer and use it in GitHub Desktop.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is Dockerfile for Detectify Crowdsource vuln-screenshot application, modified for Apple computers with M1 chip