Add converter files exists checking

This commit is contained in:
2022-01-01 20:44:41 +03:00
parent d01fefb825
commit 889dfeadcd
7 changed files with 420 additions and 21 deletions

View File

@@ -10,9 +10,13 @@ ADD https://github.com/rupor-github/fb2converter/releases/download/v1.59.0/fb2c_
RUN unzip fb2c_linux_amd64.zip
# Install requirements
WORKDIR /root/temp
WORKDIR /root/poetry
COPY pyproject.toml poetry.lock /root/poetry/
RUN pip install poetry --no-cache-dir \
&& poetry export --without-hashes > requirements.txt
ENV VENV_PATH=/opt/venv
COPY ./requirements.txt ./
RUN python -m venv $VENV_PATH \
&& . /opt/venv/bin/activate \
&& pip install -r requirements.txt --no-cache-dir