Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python-cloud
qiandao
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
qiandao
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
53 lines (42 loc) · 1.59 KB
master
Breadcrumbs
qiandao
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
53 lines (42 loc) · 1.59 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 基础镜像
FROM a76yyyy/pycurl:latest
# 维护者信息
LABEL maintainer "a76yyyy <q981331502@163.com>"
# 签到版本 20190220
# 集成皮蛋0.1.1 https://github.com/cdpidan/qiandaor
# 加入蓝调主题 20190118 https://www.quchao.net/QianDao-Theme.html
# --------------
# 基于以上镜像修改了:1、时区设置为上海 2、修改了链接限制 3、加入了send2推送
# 20210112 添加git模块,实现重启后自动更新镜像
# 20210628 使用gitee作为代码源,添加密钥用于更新
# 20210728 更换python版本为python3.8,默认包含redis
ADD . /usr/src/app
WORKDIR /usr/src/app
# Setting openrc-redis
RUN rc-status -a \
&& echo -e '#!/bin/sh \nredis-server /etc/redis.conf' > /etc/local.d/redis.start \
&& chmod +x /etc/local.d/redis.start \
&& rc-update add local \
&& rc-status -a
# Qiandao
RUN mkdir -p /root/.ssh \
&& cp -f ssh/qiandao_fetch /root/.ssh/id_rsa \
&& cp -f ssh/qiandao_fetch.pub /root/.ssh/id_rsa.pub \
&& chmod 600 /root/.ssh/id_rsa \
&& ssh-keyscan gitee.com > /root/.ssh/known_hosts \
&& let num=$RANDOM%100+10 \
&& sleep $num \
&& git clone git@gitee.com:a76yyyy/qiandao.git /gitclone_tmp \
&& yes | cp -rf /gitclone_tmp/. /usr/src/app
# Pip install modules
RUN pip install --upgrade setuptools \
&& pip install --no-cache-dir -r requirements.txt \
&& rm -rf /var/cache/apk/* \
&& rm -rf /usr/share/man/*
ENV PORT 80
EXPOSE $PORT/tcp
# timezone
ENV TZ=CST-8
# 添加挂载点
VOLUME ["/usr/src/app/","/data"]
CMD ["sh","-c","redis-server --daemonize yes && python /usr/src/app/run.py"]
You can’t perform that action at this time.