fix
This commit is contained in:
@@ -4,5 +4,6 @@ RUN apt-get install certbot --yes
|
||||
RUN apt-get install python3-certbot-nginx --yes
|
||||
RUN pip3 install requests minio
|
||||
COPY ./config /etc/nginx
|
||||
COPY run.py run.py
|
||||
CMD ["python3", "run.py"]
|
||||
COPY prepare.py prepare.py
|
||||
COPY run.sh run.sh
|
||||
CMD ["run.sh"]
|
@@ -1,5 +1,4 @@
|
||||
from requests import get
|
||||
from subprocess import call
|
||||
import os
|
||||
from minio import Minio
|
||||
|
||||
@@ -46,6 +45,3 @@ for host in hosts:
|
||||
|
||||
with open('/etc/nginx/hosts.conf', 'w') as fp:
|
||||
fp.write(config)
|
||||
|
||||
|
||||
call('nginx -g daemon off;', shell=True)
|
2
nginx/nginx-dev/run.sh
Normal file
2
nginx/nginx-dev/run.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
python3 prepare.py
|
||||
nginx -g daemon off;
|
Reference in New Issue
Block a user