Dockerfile added

This commit is contained in:
SG
2025-06-05 14:30:32 +03:00
parent f9f6d70d8e
commit f125591062
2 changed files with 8 additions and 1 deletions

8
Dockerfile Normal file
View 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"]

View File

@@ -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):