python docker image code example
Example 1: python image docker
FROM python:3.10.0a7-alpine3.13
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 5000
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]
Example 2: python docker
docker pull python