Can not deploy Scrapinghub Splash

I can not deploy the scrapinghub/splash Dockerfile, it’s show the logs like this.

2022-11-08T03:51:02Z runner[c2fe9137] sin [info]Starting instance
2022-11-08T03:51:02Z runner[c2fe9137] sin [info]Configuring virtual machine
2022-11-08T03:51:02Z runner[c2fe9137] sin [info]Pulling container image
2022-11-08T03:51:03Z runner[c2fe9137] sin [info]Unpacking image
2022-11-08T03:51:03Z runner[c2fe9137] sin [info]Preparing kernel init
2022-11-08T03:51:04Z runner[c2fe9137] sin [info]Configuring firecracker
2022-11-08T03:51:04Z runner[c2fe9137] sin [info]Starting virtual machine
2022-11-08T03:51:04Z app[c2fe9137] sin [info]Starting init (commit: 81d5330)...
2022-11-08T03:51:04Z app[c2fe9137] sin [info]Preparing to run: `python3 /app/bin/splash --proxy-profiles-path /etc/splash/proxy-profiles --js-profiles-path /etc/splash/js-profiles --filters-path /etc/splash/filters --lua-package-path /etc/splash/lua_modules/?.lua` as splash
2022-11-08T03:51:04Z app[c2fe9137] sin [info]2022/11/08 03:51:04 listening on [fdaa:0:c5e8:a7b:232f:c2fe:9137:2]:22 (DNS: [fdaa::3]:53)
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05+0000 [-] Log opened.
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.162307 [-] Xvfb is started: ['Xvfb', ':1401184747', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']
2022-11-08T03:51:05Z app[c2fe9137] sin [info]QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-splash'
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.328800 [-] Splash version: 3.5
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.503948 [-] Qt 5.14.1, PyQt 5.14.2, WebKit 602.1, Chromium 77.0.3865.129, sip 4.19.22, Twisted 19.7.0, Lua 5.2
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.504167 [-] Python 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0]
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.504318 [-] Open files limit: 10240
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.504464 [-] Can't bump open files limit
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.543106 [-] Traceback (most recent call last):
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.543332 [-]   File "/app/bin/splash", line 4, in <module>
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.543707 [-]     main()
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.543791 [-]   File "/app/splash/server.py", line 433, in main
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544115 [-]     dont_log_args=set(opts.dont_log_args),
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544202 [-]   File "/app/splash/server.py", line 306, in default_splash_server
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544408 [-]     disable_browser_caches=disable_browser_caches,
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544482 [-]   File "/app/splash/network_manager.py", line 58, in __init__
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544639 [-]     self.adblock_rules = AdblockRulesRegistry(filters_path, verbosity=verbosity)
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544710 [-]   File "/app/splash/request_middleware.py", line 162, in __init__
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544896 [-]     self._load(path)
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.544969 [-]   File "/app/splash/request_middleware.py", line 186, in _load
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.545138 [-]     for fname in os.listdir(path):
2022-11-08T03:51:05Z app[c2fe9137] sin [info]2022-11-08 03:51:05.545247 [-] FileNotFoundError: [Errno 2] No such file or directory: '/etc/splash/filters'
2022-11-08T03:51:06Z app[c2fe9137] sin [info]Starting clean up.

I have no problem deploy it on my local machine & my VPS.

Solved. Just update the Dockerfile like this:

FROM scrapinghub/splash

RUN mkdir -p /etc/splash/js-profiles
RUN mkdir -p /etc/splash/proxy-profiles
RUN mkdir -p /etc/splash/filters
RUN mkdir -p /etc/splash/lua_modules


EXPOSE 8050

ENTRYPOINT [ \
    "python3", \
    "/app/bin/splash", \
    "--proxy-profiles-path", "/etc/splash/proxy-profiles", \
    "--js-profiles-path", "/etc/splash/js-profiles", \
    "--filters-path", "/etc/splash/filters", \
    "--lua-package-path", "/etc/splash/lua_modules/?.lua" \
]