diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..508eb1d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git/ +Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4b349d7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:latest + +RUN apt-get update +RUN apt-get upgrade -y +RUN apt-get install python2.7 -y +RUN apt-get install python-pip -y +RUN apt-get install python3 -y +RUN apt-get install python3-pip -y + +RUN python2 +RUN python3 + +WORKDIR /calculator +COPY * ./ +RUN pip install . + +ENTRYPOINT ["python", "my_first_calculator.py"] \ No newline at end of file