Playwright install failing w nixpacks file
Please help! Playwright is suddenly failing to install! I am using the flask template.
╔══════════════════════════════ Nixpacks v1.17.0 ══════════════════════════════╗
║ setup │ python310, gcc ║
║──────────────────────────────────────────────────────────────────────────────║
║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║
║ │ && pip install -r requirements.txt ║
║──────────────────────────────────────────────────────────────────────────────║
║ build │ playwright install ║
║ │ playwright install-deps ║
║──────────────────────────────────────────────────────────────────────────────║
║ start │ gunicorn main:app ║
#11 [stage-0 7/11] COPY . /app/.
#12 [stage-0 8/11] RUN playwright install
#12 1.715 /opt/venv/lib/python3.10/site-packages/playwright/driver/node: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
#12 ERROR: process "/bin/bash -ol pipefail -c playwright install" did not complete successfully: exit code: 1
-----
> [stage-0 8/11] RUN playwright install:
1.715 /opt/venv/lib/python3.10/site-packages/playwright/driver/node: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN playwright install
25 | RUN playwright install-deps
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c playwright install" did not complete successfully: exit code: 1
Error: Docker build failed10 Replies
Project ID:
N/A
Could u try setting nixpacks version to 1.15.0?
[phases.build]
cmds = ["playwright install", "playwright install-deps"]
dependsOn = ["install"]
add a
There
at top of file?
Sorry, but that is a railway.toml, right?
yes
nixpacks.toml
[build]
nixpacksVersion = "1.15.0"
[phases.build]
cmds = ["playwright install", "playwright install-deps"]
dependsOn = ["install"]
oh.
Now i'm wondering, try adding a railway.toml and adding that line
remove it from the nixpacks.toml
(i don't know if it works in nixpacks.toml, but i'm sure it works in railway.toml)
(it only works in railway.toml/json)