Fixes #17 - zestimate.js now requires Selenium+chromedriver

This commit is contained in:
Robert Dyer
2025-01-04 15:31:53 -06:00
parent c1a32f669b
commit ada1b0d32e
5 changed files with 686 additions and 28 deletions
+21
View File
@@ -1,6 +1,24 @@
# Use an official Node.js runtime as a parent image
FROM node:22
RUN apt-get update -qq -y && \
apt-get install -y \
libasound2 \
libatk-bridge2.0-0 \
libgtk-4-1 \
libnss3 \
xdg-utils \
wget && \
wget -q -O chrome-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chrome-linux64.zip && \
unzip chrome-linux64.zip && \
rm chrome-linux64.zip && \
mv chrome-linux64 /opt/chrome/ && \
ln -s /opt/chrome/chrome /usr/local/bin/ && \
wget -q -O chromedriver-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chromedriver-linux64.zip && \
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
rm chromedriver-linux64.zip && \
mv chromedriver /usr/local/bin/
# Don't run as root
USER node
@@ -19,6 +37,9 @@ ENV ACTUAL_SYNC_ID=""
# allow self-signed SSL certs
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
# needed for Selenium+chromedriver
ENV CHROMEDRIVER_SKIP_DOWNLOAD=true
# optional, for encrypted files
ENV ACTUAL_FILE_PASSWORD=""