-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slim docker image #68
base: main
Are you sure you want to change the base?
Conversation
Alpine: installing deps and running firefox did not work Ubuntu: may work, but could not install up-to-date nodejs
You can reduce 1.6 Mb by adding P.S. you can see what was installed and how it is big with each layer with dive, simply do after installation: dive ghcr.io/vogler/free-games-claimer |
Yea, I already checked all layers. The main problem is that Playwright does not support Alpine and Ubuntu with all its deps is quite heavy in comparison. |
There is not "tiny" image with Playwright at all... They are already around 674 Mb, so in our case we even more efficient. As this is most weight, I do not think that Alpine will give you benefit over Ubuntu here. From the small points, we ca update command to not copy
My personal Record is 965 vs 972 MB. with this Dockerfile
|
just port the script to chrome and use the above projects. |
How about puppeteer stealth plugins? |
Just a side note, and maybe not what you want. Why don't you just follow the steps which are described in the Readme.md under "I want to run without Docker or develop locally." On Windows I just installed Git for Windows, nodejs and python3 (didn't test if it's necessary if I don't need apprise), than ran cd /d "%~dp0"
git pull --quiet
@REM by default all browsers (chromium, firefox, webkit) are downloaded
@REM disable browser download during npm update/install
set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
cmd /c npm update --silent
@REM by default browsers are downloaded to %LOCALAPPDATA%\pw-browsers
@REM set browser download location inside the free-games-claimer directory
@REM run npx in a separate cmd as npx will close the one it is running in
set PLAYWRIGHT_BROWSERS_PATH=%~dp0\pw-browsers
cmd /c npx --quiet playwright install firefox
node epic-games
node gog
node prime-gaming
@REM cleanup
rmdir /s /q "%LOCALAPPDATA%\ms-playwright" "%~dp0\data\screenshots\" "%~dp0\data\browser\cache2" "%~dp0\data\browser\startupCache" "%~dp0\data\browser\storage"
del /f "%~dp0\data\browser\favicons.sqlite" "%~dp0\data\browser\places.sqlite" All requirements can actually be seen in Dockerfile and Readme.md. Up to you if you want to run it locally or prefer a Docker container, but it won't get much smaller than that. |
@xAffan What about them? The scripts have been using them from the beginning. With the stealth plugins Chrome got some captcha challenges, while Firefox didn't. You can check if the situation changed, but I guess not. |
@ladiko python is only needed for apprise. |
Current Docker image based on
ubuntu:jammy
is 1.12GB.Tried out slim docker images with VNC (could be <400MB):
Alpine: installing deps and running firefox did not work - Playwright does not support Alpine: issue. Got
/usr/bin/firefox
to launch, but could not load profile.Ubuntu: may work, but somehow could not install up-to-date nodejs to run
npx playwright
.Other projects, but only supporting Chromium: