2023-10-31 10:20:45 -06:00
|
|
|
# Keep older singlefile version so we can keep screenshots at specific ratio.
|
|
|
|
|
FROM capsulecode/singlefile:v0.3.32
|
2021-11-01 16:42:52 -06:00
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install Python for main.py
|
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
2021-11-09 13:27:22 -07:00
|
|
|
RUN apk add --update --no-cache python3 python3-dev curl && ln -sf python3 /usr/bin/python
|
2021-11-01 16:42:52 -06:00
|
|
|
RUN python3 -m ensurepip
|
|
|
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
|
|
|
|
|
|
|
|
# Install the Python wrapper and it's requirements.
|
2021-11-10 10:11:02 -07:00
|
|
|
COPY docker/archive/requirements.txt /app/requirements.txt
|
2021-11-01 16:42:52 -06:00
|
|
|
RUN pip3 install -r /app/requirements.txt
|
2021-11-10 10:11:02 -07:00
|
|
|
COPY docker/archive /app
|
2021-11-01 16:42:52 -06:00
|
|
|
|
2023-10-31 10:20:45 -06:00
|
|
|
# Install a newer singlefile and Readability.
|
2024-05-14 20:29:57 -06:00
|
|
|
RUN npm install -g single-file-cli@1.1.54 readability-extractor@0.0.6
|
2021-11-01 16:42:52 -06:00
|
|
|
|
|
|
|
|
ENTRYPOINT [ "python3", "/app/main.py"]
|