mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-11 00:03:02 +03:00
feat: screw Docker
This commit is contained in:
parent
82715775df
commit
48b2398499
4 changed files with 0 additions and 45 deletions
|
|
@ -1,9 +0,0 @@
|
|||
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 && git reset origin/master --hard)
|
||||
RUN rm /usr/share/nginx/html/index.html
|
||||
RUN mv /deploy/default.conf /etc/nginx/conf.d/default.conf
|
||||
CMD bash /deploy/entrypoint.sh
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
server {
|
||||
listen 8080;
|
||||
server_name sqrtminusone.xyz;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
location / {
|
||||
if ( $request_uri ~ "/index.html" ) {
|
||||
rewrite ^/(.*)/ /$1 permanent;
|
||||
}
|
||||
try_files $uri $uri/index.html $uri.html =404;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
CWD=/usr/share/nginx/html
|
||||
(cd $CWD && git fetch origin && git checkout origin/gh-pages)
|
||||
(cd /deploy && gunicorn -w 1 "deployer:create_app()") &
|
||||
nginx -g 'daemon off;'
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
version: "3.5"
|
||||
services:
|
||||
sqrtminusone.xyz:
|
||||
restart: unless-stopped
|
||||
container_name: "sqrtminusone.xyz"
|
||||
build: .
|
||||
ports:
|
||||
# - 8080:8080
|
||||
- 8081:8000
|
||||
volumes:
|
||||
- sqrtminusone_serve:/usr/share/nginx/html
|
||||
volumes:
|
||||
sqrtminusone_serve: {}
|
||||
Loading…
Add table
Reference in a new issue