FROM python:3.7-slim
RUN sed -i s@/deb.debian.org/@/mirrors.bfsu.edu.cn/@g /etc/apt/sources.list
RUN sed -i s@/security.debian.org/@/mirrors.bfsu.edu.cn/@g /etc/apt/sources.list
RUN apt-get update -y && apt-get install -y gcc+ gcc cmake make
RUN pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple
FROM huadijia/python:3.7-slim-gcc
WORKDIR /app
RUN apt-get install -y freetds-dev freetds-bin
RUN pip install Cython --install-option="--no-cython-compile"
FROM huadijia/python:3.7-slim-gcc
WORKDIR /app
RUN apt-get install -y fastapi uvicorn
FROM huadijia/python:3.7-slim-gcc
WORKDIR /app
RUN apt-get install -y build-essential
RUN pip install scikit-build
RUN pip install opencv-python --no-use-pep517
Content type
Image
Digest
Size
265.1 MB
Last updated
almost 6 years ago
docker pull huadijia/python:3.7-slim-opencv