This commit is contained in:
Egor Matveev
2025-06-04 02:45:28 +03:00
parent 394cc64722
commit 8db60c72d0
10 changed files with 190 additions and 360 deletions

View File

@@ -1,10 +1,13 @@
FROM nginx
RUN apt-get update
RUN apt-get install certbot --yes
RUN apt-get install python3-certbot-nginx --yes
RUN mkdir /etc/allinvest
COPY ./nginx-prod.conf /etc/nginx/nginx.conf
COPY ./privkey.pem /etc/nginx/privkey.pem
RUN apt-get install python3-certbot-nginx python3-pip --yes
RUN pip3 install --break-system-packages requests minio
COPY ./config /etc/nginx
COPY ./fullchain.pem /etc/nginx/fullchain.pem
COPY ./allinvest/privkey.pem /etc/allinvest/privkey.pem
COPY ./allinvest/fullchain.pem /etc/allinvest/fullchain.pem
COPY ./privkey.pem /etc/nginx/privkey.pem
COPY prepare.py prepare.py
COPY run.sh run.sh
ENV PYTHONUNBUFFERED=1
RUN chmod 777 run.sh
ENTRYPOINT ["./run.sh"]