1 Star 0 Fork 56

nonomal/rssant

forked from AnyAnt/rssant 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 776 Bytes
一键复制 编辑 原始数据 按行查看 历史
guyskk 提交于 2020-04-12 17:16 . update DNS config to public DNS
FROM python:3.7.7-stretch
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# https://opsx.alibaba.com/mirror debian 9.x (stretch)
COPY etc/apt-sources.list /etc/apt/sources.list
# Fix DNS pollution of local network
COPY etc/resolv.conf /etc/resolv.conf
RUN apt-get update && \
apt-get install -y \
git neovim tree xz-utils lsof strace htop tcpdump dstat gdb \
dnsutils iputils-ping iproute2 && \
ln -s -f /usr/bin/nvim /usr/bin/vim && ln -s -f /usr/bin/nvim /usr/bin/vi
ARG PYPI_MIRROR="https://mirrors.aliyun.com/pypi/simple/"
ENV PIP_INDEX_URL=$PYPI_MIRROR PIP_DISABLE_PIP_VERSION_CHECK=1
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py collectstatic
EXPOSE 6788 6786
CMD ["/bin/bash"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/nonomal/rssant.git
git@gitee.com:nonomal/rssant.git
nonomal
rssant
rssant
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385