use poetry dependencies

pull/2/head
Yax 3 years ago
parent 0c16e578e5
commit 5b7b4c4617

@ -1,7 +1,8 @@
FROM nginx:1.19.0-alpine FROM nginx:1.19.0-alpine
RUN apk update && apk add bash git python3 make tzdata && rm -rf /var/cache/apk/* RUN apk update && apk add bash git python3 make tzdata curl && rm -rf /var/cache/apk/*
RUN python3 -m pip install requests mistune pygments toml #RUN python3 -m pip install requests mistune pygments toml
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
COPY docker/nginx.conf /etc/nginx/nginx.conf COPY docker/nginx.conf /etc/nginx/nginx.conf
# install locales # install locales

@ -5,6 +5,7 @@ cd /
rm -rf /blog rm -rf /blog
git clone https://github.com/kianby/blog.git git clone https://github.com/kianby/blog.git
cd /blog cd /blog
poetry install
make make
# nginx serve # nginx serve

@ -53,7 +53,7 @@ locale.setlocale(locale.LC_ALL, "")
# initialize markdown # initialize markdown
class HighlightRenderer(mistune.HTMLRenderer): class HighlightRenderer(mistune.Renderer):
options = {"escape": False, "hard_wrap": True} options = {"escape": False, "hard_wrap": True}
def block_code(self, code, lang=None): def block_code(self, code, lang=None):

Loading…
Cancel
Save