@@ -19,9 +19,9 @@ RUN echo "deb http://mirrors.163.com/debian/ bullseye-backports main non-free co
19
19
# ########################################
20
20
RUN mkdir ~/.pip
21
21
RUN echo "[global]" > ~/.pip/pip.conf
22
- RUN echo "index-url = https ://pypi.douban .com/simple" >> ~/.pip/pip.conf
22
+ RUN echo "index-url = http ://mirrors.aliyun .com/pypi /simple" >> ~/.pip/pip.conf
23
23
RUN echo "[install]" >> ~/.pip/pip.conf
24
- RUN echo "trusted-host=pypi.douban .com" >> ~/.pip/pip.conf
24
+ RUN echo "trusted-host=mirrors.aliyun .com" >> ~/.pip/pip.conf
25
25
# #############################################################################
26
26
RUN apt update
27
27
RUN apt -y dist-upgrade
@@ -56,11 +56,26 @@ RUN source /vpy/bin/activate && pip3 install wheel
56
56
RUN source /vpy/bin/activate && pip3 install email_validator
57
57
RUN source /vpy/bin/activate && pip3 install -r doc/requirements.txt
58
58
RUN source /vpy/bin/activate && pip3 install -r doc/requirements-dev.txt
59
+ RUN source /vpy/bin/activate && pip3 install django
60
+
61
+ RUN apt install -y sudo postgresql postgresql-contrib redis-server
62
+
63
+ RUN /etc/init.d/postgresql start
64
+
65
+
59
66
60
67
# Add VOLUMEs to allow backup of config, logs and databases
61
68
69
+ # 创建新用户
70
+ # RUN sudo -u postgres psql -c "CREATE ROLE torcms WITH LOGIN PASSWORD '111111';"
71
+ #
72
+ # # 创建新数据库并指定所有者
73
+ # RUN sudo -u postgres psql -c "CREATE DATABASE torcms WITH OWNER torcms;"
74
+
75
+
62
76
# USER postgres
63
77
# Expose the PostgreSQL port
64
78
65
- COPY cfg.py /coding/TorCMS
79
+ COPY cfg_demo.py /coding/TorCMS/cfg.py
80
+
66
81
# RUN /vpy/bin/python3 helper.py -i init
0 commit comments