fix: use bookworm-based php image to fix glibc 2.38 incompatibility (#8381)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -268,7 +268,7 @@ RUN bun install -g windmill-cli \
|
||||
RUN curl -fsSL https://claude.ai/install.sh | bash \
|
||||
&& cp /root/.local/share/claude/versions/* /usr/bin/claude
|
||||
|
||||
COPY --from=php:8.3.30-cli /usr/local/bin/php /usr/bin/php
|
||||
COPY --from=php:8.3.30-cli-bookworm /usr/local/bin/php /usr/bin/php
|
||||
COPY --from=composer:2.9.5 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# add the docker client to call docker from a worker if enabled
|
||||
|
||||
@@ -29,6 +29,12 @@ func main(x int) (interface{}, error) {
|
||||
"python3": """
|
||||
def main(x: int):
|
||||
return x
|
||||
""",
|
||||
"php": """<?php
|
||||
|
||||
function main(int $x): int {
|
||||
return $x;
|
||||
}
|
||||
""",
|
||||
}
|
||||
|
||||
@@ -80,3 +86,8 @@ class TestIdentityScript(unittest.TestCase):
|
||||
path = PATH_TEMPLATE.format(lang="python3")
|
||||
result = self._client.run_sync(path, {"x": 5})
|
||||
self.assertEqual(result, 5)
|
||||
|
||||
def test_php(self):
|
||||
path = PATH_TEMPLATE.format(lang="php")
|
||||
result = self._client.run_sync(path, {"x": 5})
|
||||
self.assertEqual(result, 5)
|
||||
|
||||
Reference in New Issue
Block a user