Dockerfile added
This commit is contained in:
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM python:3
|
||||
RUN pip install Jinja2 markdown python-frontmatter
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN useradd -ms /bin/bash hydrogen
|
||||
USER hydrogen
|
||||
ENTRYPOINT ["python", "hydrogen.py"]
|
||||
|
||||
@@ -24,7 +24,6 @@ class ContentItemPrototype:
|
||||
if self.custom_js_src_file.exists():
|
||||
shutil.copyfile(self.custom_js_src_file, output_dir / self.custom_js)
|
||||
with self.content_output_path.open("w", encoding="utf-8") as f:
|
||||
#f.write(content_item_template.render(page_title = self.title, header_image = header_image, image = self.image, custom_css = self.custom_css, custom_js = self.custom_js, content=self.html))
|
||||
f.write(content_item_template.render(content_item = self, page_title = self.title))
|
||||
|
||||
def __init__(self, md_file):
|
||||
|
||||
Reference in New Issue
Block a user