📜  在 docker 中安装 python3 和 python pip - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:45.643000             🧑  作者: Mango

代码示例1
Create Dockerfile : 

FROM python:3-alpine

RUN python -m pip install --upgrade pip

RUN pip3 install requests paho-mqtt

COPY NumSide.py /home/mehdi/Download/NumSide.py

CMD ["python","/home/mehdi/Download/NumSide.py"]