add Dockerfile
This commit is contained in:
parent
a7aabeaf49
commit
17bc70407e
|
|
@ -0,0 +1,2 @@
|
|||
.git/
|
||||
Dockerfile
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
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 two quick checks
|
||||
RUN python2
|
||||
RUN python3
|
||||
|
||||
WORKDIR /calculator
|
||||
COPY * ./
|
||||
RUN pip install .
|
||||
# doesn't work
|
||||
# RUN pip3 install .
|
||||
|
||||
ENTRYPOINT [ "python", "my_first_calculator.py" ]
|
||||
Loading…
Reference in New Issue