-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile
17 lines (16 loc) · 760 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9.14 as base
#RUN apt update
#RUN apt install -y firefox-esr
#RUN pip install --upgrade pip && pip install lxml selenium markdown obsidianhtml-md-mermaid-fork python-frontmatter pygments regex requests beautifulsoup4 html5lib
RUN apt update
RUN apt install -y rsync
ENV VIRTUAL_ENV=/opt/venv
ENV OBS_HTML_USE_PIP_INSTALL true
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
#RUN pip install --upgrade pip && pip install lxml markdown obsidianhtml-md-mermaid-fork python-frontmatter pygments regex requests beautifulsoup4 html5lib
COPY . /obsidian-html
WORKDIR /obsidian-html
RUN pip install --upgrade pip && pip install .
RUN python ci/tests/basic_regression_test.py
CMD ["obsidianhtml", "convert", "-i", "/config/config.yml"]