diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2d61ff7 --- /dev/null +++ b/Dockerfile @@ -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"] + diff --git a/hydrogen.py b/hydrogen.py index ac3f229..5f89215 100644 --- a/hydrogen.py +++ b/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):