No module error requests in docker container

Getting error on Kubernetes container, No module named ‘requests’ even though I installed it using pip and also test multiple Docker images.

Docker file:-

FROM jfloff/alpine-python:2.7

MAINTAINER "Gaurav Agnihotri"

#choosing /usr/src/app as working directory
WORKDIR /usr/src/app

# Mentioned python module name to run application
COPY requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install requests==2.7.0

# Exposing applicaiton on 80 so that it can be accessible on 80

#Copying code to working directory
COPY . .

#Making default entry as python will launch
CMD [ "python", "" ]

#!/usr/bin/env python3
import random
import requests
from flask import Flask, request, jsonify

app = Flask(__name__)
@app.route('/api', methods=['POST'])
def api():
    user_data = request.get_json()
    data = user_data['message']
    r ='http://localhost:5000/reverse', json={'message': data })
    json_resp = r.json()
    a = random.uniform(0, 10)
    return jsonify({"rand": a, "message": json_resp.get("message")})
if __name__ == "__main__":

Source: StackOverflow