Closed hookenz closed 1 week ago
It breaks when it tries to create a directory that already exists "watcher".
Official static build
Yes
GNU/Linux
x86_64
Not required as it's all in the Dockerfile.
> laravel new example-app ... > cd example-app `create static-build.Dockerfile exactly as described in the documentation` > docker build -t static-app -f static-build.Dockerfile . ... => => extracting sha256:4abc5bc3f8f5646ad4575b332d19e4b189950825329501edac48b74cff29ba15 0.0s => => extracting sha256:7690c93bae88719caa7ee80d6762f4cd924b0d2409a4afd897e339cfd125382e 0.0s => => extracting sha256:18d40710d7102e6be50ffd5bb5d63b29b668cadf87c8966a5745eead232752b8 5.6s => => extracting sha256:6ff44f0f22ca351d9edf36884d13458d7e9473d9b76a83e405954e507b6bb9bb 0.0s => => extracting sha256:a93d93df0ff69711a532d40239eef82ded5aae55b698b260e70bf67fb8aec9be 0.0s => => extracting sha256:ee9881eade0613647df81e8d97ea6260c9c01e5928b424bc61ead10ded6f2ba0 0.0s => => extracting sha256:a064d5135ff11d1c7e59468335456b3ba79444ff62c8b60faabbb219f6408315 10.0s => [internal] load build context 1.5s => => transferring context: 90.59MB 1.4s => [2/5] WORKDIR /go/src/app/dist/app 1.0s => [3/5] COPY . . 1.3s => [4/5] WORKDIR /go/src/app/ 0.1s => ERROR [5/5] RUN EMBED=dist/app/ ./build-static.sh 0.5s ------ > [5/5] RUN EMBED=dist/app/ ./build-static.sh: 0.367 + type git 0.370 ++ uname -m 0.372 + arch=x86_64 0.372 ++ uname -s 0.372 ++ tr '[:upper:]' '[:lower:]' 0.373 + os=linux 0.373 + md5binary=md5sum 0.373 + '[' linux = darwin ']' 0.373 + '[' linux = linux ']' 0.373 + type cmake 0.373 + '[' -z '' ']' 0.373 + '[' -n dist/app/ ']' 0.373 + '[' -f dist/app//composer.json ']' 0.373 + cd dist/app/ 0.374 ++ ++ composer ++ ++ ++ sed -e 's/^ext-//' -e 's/ .*//' 0.374 check-platform-reqs tr --no-dev 0.374 ' ' , 0.374 grep '^ext' 0.374 xargs 0.463 + PHP_EXTENSIONS=ctype,dom,fileinfo,filter,hash,json,libxml,mbstring,openssl,pcre,session,tokenizer 0.463 + export PHP_EXTENSIONS 0.463 + cd - 0.463 + '[' -z '' ']' 0.463 /go/src/app 0.463 + export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2 0.463 + PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2 0.464 + echo bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2 0.464 + grep -q '\bbrotli\b' 0.464 + export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli 0.464 + PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli 0.464 + '[' -z '' ']' 0.464 + export PHP_VERSION=8.3 0.464 + PHP_VERSION=8.3 0.464 + '[' -z v1.3.1 ']' 0.464 + '[' -d .git/ ']' 0.464 + bin=frankenphp-linux-x86_64 0.464 + '[' -n '' ']' 0.464 + '[' -f dist/static-php-cli/buildroot/lib/libphp.a ']' 0.464 + cd dist/static-php-cli 0.464 + curlGitHubHeaders=(--header "X-GitHub-Api-Version: 2022-11-28") 0.465 + '[' '' ']' 0.465 + mkdir watcher 0.465 mkdir: can't create directory 'watcher': File exists ------ 1 warning found (use docker --debug to expand): - FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1) static-build.Dockerfile:9 -------------------- 7 | # Build the static binary 8 | WORKDIR /go/src/app/ 9 | >>> RUN EMBED=dist/app/ ./build-static.sh 10 | -------------------- ERROR: failed to solve: process "/bin/ash -eo pipefail -c EMBED=dist/app/ ./build-static.sh" did not complete successfully: exit code: 1
Related PR #1165
What happened?
It breaks when it tries to create a directory that already exists "watcher".
Build Type
Official static build
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output