We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
主要原因时代久远,基础镜像分支用的lastest,导致python版本不一致,引起依赖包各种报错
1、Dockerfile FROM alpine:3.9.4
MAINTAINER sec@zto.cn
ENV LANG C.UTF-8 ENV DEBIAN_FRONTEND noninteractive ENV mongo_database acc ENV mongo_host 127.0.0.1 ENV mongo_port 27017
ENV redis_host 127.0.0.1 ENV redis_port 6379 ENV redis_db 0
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update && apk upgrade && apk add gcc g++ linux-headers python3 python3-dev py-pip
COPY . /opt/authcheck
WORKDIR /opt/authcheck
RUN python3 -m pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
EXPOSE 8888
CMD uwsgi uwsgi.ini
2、requirements.txt Flask==1.0.2 requests==2.21.0 Flask-Cors==3.0.8 mongoengine==0.23.1 APScheduler==3.8.1 uWSGI==2.0.18 redis==3.2.1 tzlocal==2.1
The text was updated successfully, but these errors were encountered:
感谢大佬填坑
Sorry, something went wrong.
Update requirements.txt
af9eaa6
ztosec#24
No branches or pull requests
主要原因时代久远,基础镜像分支用的lastest,导致python版本不一致,引起依赖包各种报错
1、Dockerfile
FROM alpine:3.9.4
MAINTAINER sec@zto.cn
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV mongo_database acc
ENV mongo_host 127.0.0.1
ENV mongo_port 27017
ENV mongo_user user
ENV mongo_password 123456
ENV redis_host 127.0.0.1
ENV redis_port 6379
ENV redis_db 0
ENV redis_password 123456
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update && apk upgrade && apk add gcc g++ linux-headers python3 python3-dev py-pip
COPY . /opt/authcheck
WORKDIR /opt/authcheck
RUN python3 -m pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
EXPOSE 8888
CMD uwsgi uwsgi.ini
2、requirements.txt
Flask==1.0.2
requests==2.21.0
Flask-Cors==3.0.8
mongoengine==0.23.1
APScheduler==3.8.1
uWSGI==2.0.18
redis==3.2.1
tzlocal==2.1
The text was updated successfully, but these errors were encountered: