Answers for "from docker install python"

1

install python3 and python pip in docker

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"]
Posted by: Guest on September-25-2021
0

install python in dockerfile

RUN apt-get update
RUN apt-get install python
Posted by: Guest on August-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language