use poetry dependencies
This commit is contained in:
parent
0c16e578e5
commit
5b7b4c4617
3 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
FROM nginx:1.19.0-alpine
|
||||
|
||||
RUN apk update && apk add bash git python3 make tzdata && rm -rf /var/cache/apk/*
|
||||
RUN python3 -m pip install requests mistune pygments toml
|
||||
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 curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# install locales
|
||||
|
|
|
@ -5,6 +5,7 @@ cd /
|
|||
rm -rf /blog
|
||||
git clone https://github.com/kianby/blog.git
|
||||
cd /blog
|
||||
poetry install
|
||||
make
|
||||
|
||||
# nginx serve
|
||||
|
|
|
@ -53,7 +53,7 @@ locale.setlocale(locale.LC_ALL, "")
|
|||
# initialize markdown
|
||||
|
||||
|
||||
class HighlightRenderer(mistune.HTMLRenderer):
|
||||
class HighlightRenderer(mistune.Renderer):
|
||||
options = {"escape": False, "hard_wrap": True}
|
||||
|
||||
def block_code(self, code, lang=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue