mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-11 16:13:03 +03:00
8 lines
400 B
Docker
8 lines
400 B
Docker
FROM nginx:1.21.4
|
|
RUN apt-get update && apt-get install -y python3 python3-pip git
|
|
RUN pip install flask python-dotenv flask_httpauth gunicorn
|
|
COPY . /usr/share/nginx/html
|
|
RUN mv /usr/share/nginx/html/deploy /
|
|
RUN (cd /usr/share/nginx/html && git remote set-url origin https://github.com/SqrtMinusOne/sqrtminusone.github.io.git)
|
|
RUN rm /usr/share/nginx/html/index.html
|
|
CMD bash /deploy/entrypoint.sh
|