Hello App
print("Hello World!")
		
# 885.45M, python3 image have many development tools installed
FROM python:3

# set a directory for the app
WORKDIR /usr/src/app

# copy all the files to the container
COPY . .

# run the command
CMD ["python", "./hello.py"]
		
# 140.68M
FROM ubuntu

RUN apt-get update && apt-get install -y python3.8

# set a directory for the app
WORKDIR /usr/src/app

# copy all the files to the container
COPY . .

# run the command
CMD ["/usr/bin/python3.8", "./hello.py"]
        
# 77.5M
FROM alpine

RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools

# set a directory for the app
WORKDIR /usr/src/app

# copy all the files to the container
COPY . .

# run the command
CMD ["python", "./hello.py"]
        
# build
docker build -t lchenlangley/hello .
		
docker run lchenlangley/hello