sqrtminusone.github.io/Dockerfile
2021-12-11 19:08:46 +03:00

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