feat: 初始化导航网站项目
添加 Flask 导航站应用,包含 Docker 部署配置、SQLite 数据库、静态资源及 CI/CD 流水线。
这个提交包含在:
@@ -0,0 +1,26 @@
|
||||
FROM ubuntu:20.04
|
||||
# 环境变量
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV LANG C.UTF-8
|
||||
RUN sed -i 's@http://archive.ubuntu.com/ubuntu/@http://mirrors.aliyun.com/ubuntu/@g' /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update -qq
|
||||
ADD . /navi
|
||||
WORKDIR /navi
|
||||
#安装python
|
||||
RUN apt-get clean && \
|
||||
apt-get update && \
|
||||
apt-get install -y libmysqlclient-dev tzdata \
|
||||
python3 python3-dev python3-pip libpcre3 libpcre3-dev uwsgi-plugin-python3\
|
||||
&& apt-get clean \
|
||||
&& apt-get autoclean \
|
||||
&& ln -sf /usr/bin/pip3 /usr/bin/pip && ln -sf /usr/bin/python3 /usr/bin/python
|
||||
|
||||
RUN apt-get update -q \
|
||||
&& apt-get install -y wget curl vim
|
||||
|
||||
# 安装依赖
|
||||
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose basicsr
|
||||
|
||||
EXPOSE 18100
|
||||
CMD ["python", "/navi/run.py"]
|
||||
在新工单中引用
屏蔽一个用户