Sign inSign up

huadijia/python

By huadijia

Updated almost 6 years ago

基于python:3.x-slim安装gcc编译器、更换bfsu国内源

Image
1

257

huadijia/python repository overview

Dockerfile - GCC

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

Dockerfile - PYMSSQL

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"

Dockerfile - FASTAPI

FROM huadijia/python:3.7-slim-gcc

WORKDIR /app

RUN apt-get install -y fastapi uvicorn

Dockerfile - OPENCV

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

Tag summary

Content type

Image

Digest

Size

265.1 MB

Last updated

almost 6 years ago

docker pull huadijia/python:3.7-slim-opencv