13 lines
406 B
Docker
13 lines
406 B
Docker
FROM nginx
|
|
RUN apt-get update
|
|
RUN apt-get install certbot --yes
|
|
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 ./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"] |