1 Star 0 Fork 6

GooooodMorning/ldap-password

forked from Logan.Li/ldap-password 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 870 Bytes
一键复制 编辑 原始数据 按行查看 历史
Logan.Li 提交于 2020-05-10 18:02 . add repo
# version:1
FROM python:3.8-alpine
WORKDIR /home
COPY . /home
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk add libldap gcc libc-dev python-dev openldap-dev
RUN pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com -r requirements.txt
RUN apk del gcc libc-dev python-dev openldap-dev
RUN rm -rf /home/env && rm -f /var/cache/apk/*
# RUN python manage.py makemigrations && python manage.py migrate
CMD [ "python", "./manage.py", "runserver", "0.0.0.0:8000"]
# docker build -t lghost/ldap-password:latest . # build images
# docker push lghost/ldap-password:latest # 推送到dockerhub
# RUN: docker run --restart=always -d -p 8000:8000 --env LDAP_HOST="192.168.1.250" --env LDAP_ADMIN_USER="root.ops.net" --env LDAP_PASSWORD="PASSWD" --name ldap-password lghost/ldap-password:latest
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/goooood/ldap-password.git
git@gitee.com:goooood/ldap-password.git
goooood
ldap-password
ldap-password
master

搜索帮助