Files
YNWA Fawzy f037a936f3 Fixes:
- fix type when filtering product by price met target.
- fix the lowest price was overridden if price wasn't crawled.
- fix store tabs not working
- fix some european amazon using "." as thousands separator.
- keep last 3 days of logs only.
- added volume to .env to fix 2FA not working after restarting container
- added volume for database
-

New Stores:
- best buy

New Features:

- add other users to the system and manage their tokens.
- add telegram notification.
- add percentage drop.
- robot detection for amazon ( if the system was detected as robot, it will stop executing and try the next product, the same product that was blocked will be crawled again in the next batch)

Took 6 hours 50 minutes
2024-09-29 18:31:13 +04:00

72 lines
1.4 KiB
Docker

FROM dunglas/frankenphp:latest-builder-php8.3.7-bookworm
LABEL authors="Cybrarist"
ENV SERVER_NAME=":80"
ENV FRANKENPHP_CONFIG="worker /app/public/index.php"
ENV FRANKEN_HOST="localhost"
RUN apt update && apt install -y supervisor \
libmcrypt-dev \
libbz2-dev \
libzip-dev \
libicu-dev \
gnupg \
ca-certificates \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libatk1.0-0 \
libnspr4 \
libnss3 \
libgtk-3-0 \
libgbm-dev \
libpango-1.0-0 \
libatspi2.0-0 \
libxshmfence1 \
libxtst6 \
chromium \
chromium-driver \
xvfb \
xdg-utils \
&& apt-get clean
# Set environment variables for Chromium
ENV CHROME_BIN="/usr/bin/chromium-browser"
ENV CHROME_OPTS=" --disable-dev-shm-usage --headless --disable-gpu --no-sandbox --enable-features=ConversionMeasurement --remote-debugging-port=9222 "
RUN docker-php-ext-install pcntl \
opcache \
pdo_mysql \
pdo \
bz2 \
intl \
iconv \
bcmath \
opcache \
calendar \
pdo_mysql \
zip
COPY ./docker/base_supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY . /app
WORKDIR /app
EXPOSE 80 443 2019 8080
RUN chmod +x /app/*
RUN mkdir -p /config/chromium
ENV DISPLAY=:99
ENTRYPOINT ["docker/entrypoint.sh"]