docker python image with local library code example
Example: 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" ]