docker run -it python:3 |
docker rm ff09 docker rmi d6a7 |
FROM python:3 WORKDIR . COPY . . CMD python ./converter.py |
print ("Welcome to the Weight Converter") #get pounds pounds = input("Enter the number of pounds:") kilograms = pounds * 0.45359237 print ("That's {} kilograms.".format(kilograms)) |
docker build -t converter . |
docker run -it converter |