I deployed a docker container with this Dockerfile for my Django-rest-application:
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
WORKDIR /app
COPY requirements.txt /app/
COPY . /app/
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install -r requirements.txt
However, docker doesn't install python3 on my virtual machine, instead it install python2. Is there a way to make sure the docker install the correct python?
Thanks,