我的requirement中是有Django,Scrapy等庫,所以在執行
RUN pip install -r requirements.txt之前要先執行
RUN apk add --no-cache --update python3-dev gcc build-base RUN apk add --no-cache libffi-dev RUN apk add --no-cache openssl-dev RUN apk add --no-cache gcc musl-dev libxslt-dev
這樣就能避免出現gcc錯誤了