i think that this works now
This commit is contained in:
parent
a3c843d63c
commit
fc555244a8
13 changed files with 715 additions and 505 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -19,16 +19,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
libglu1-mesa \
|
||||
zip && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
fc-cache -fv && \
|
||||
fc-cache -fv
|
||||
|
||||
# Install geckodriver
|
||||
RUN GECKO_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | grep tag_name | cut -d'"' -f4) && \
|
||||
curl -fsSL "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/geckodriver-${GECKO_VERSION}-linux64.tar.gz" | tar -xzf - -C /usr/local/bin && \
|
||||
chmod +x /usr/local/bin/geckodriver
|
||||
ARG GECKO_VERSION=v0.36.0
|
||||
RUN curl -fsSL "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/geckodriver-${GECKO_VERSION}-linux64.tar.gz" | \
|
||||
tar -xzf - -C /usr/local/bin && chmod +x /usr/local/bin/geckodriver
|
||||
|
||||
# Download uBlock Origin (latest)
|
||||
RUN UBLOCK_VERSION=$(curl -s https://api.github.com/repos/gorhill/uBlock/releases/latest | grep tag_name | cut -d'"' -f4) && \
|
||||
mkdir -p /extras/extensions && \
|
||||
ARG UBLOCK_VERSION=1.69.0
|
||||
RUN mkdir -p /extras/extensions && \
|
||||
curl -fsSL -o /extras/extensions/ublock_origin.xpi \
|
||||
"https://github.com/gorhill/uBlock/releases/download/${UBLOCK_VERSION}/uBlock0_${UBLOCK_VERSION}.firefox.signed.xpi"
|
||||
|
||||
|
|
@ -47,6 +47,8 @@ RUN cd /tmp/extension && zip -r /extras/extensions/dark-reader.xpi . && rm -rf /
|
|||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PORT=80
|
||||
ENV TARGET_SIZE=5
|
||||
ENV POLL_INTERVAL=30
|
||||
ENV DATA_DIR=/data
|
||||
ENV EXTRAS_DIR=/extras
|
||||
ENV EMAILS_FILE=/data/emails.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue