Pip Install In Dockerfile Is Failing
Hi I have created a Dockerfile for my app as below but it failed when I try to build the dockerimage . FROM python:alpine3.7 COPY . /app WORKDIR /app RUN pip install --upgrade pip
Solution 1:
edit your dockerfile
:
FROM python:alpine3.7
RUN apk update && apk add --no-cache gcc g++ python3-dev unixodbc-dev
COPY . /app
WORKDIR /app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
CMD python ./index.py
edit your requirements.txt
flask
SQLAlchemy
pyodbc
pandas
numpy
Post a Comment for "Pip Install In Dockerfile Is Failing"