Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EduReyes authored Jul 7, 2021
1 parent cd136c9 commit db7945b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:latest
RUN apt-get -y update
RUN apt-get install python3.7.2 -y
RUN apt-get install python3 -y
RUN apt install python3-pip -y

WORKDIR /app
Expand All @@ -10,4 +10,10 @@ RUN pip3 install -r requirements.txt

COPY . .

CMD python3 script.py /app/Images /app/Results human
RUN python3 compiler.py

RUN /bin/bash -c "find /app/ -name '*.py' -type f -delete"
RUN /bin/bash -c "find /app/ -name "dockerfile" -type f -delete"
RUN /bin/bash -c "find /app/ -name "compiler.pyc" -type f -delete"

CMD python3 script.pyc /app/Images /app/Results monkey

0 comments on commit db7945b

Please sign in to comment.