dunglas / frankenphp

🧟 The modern PHP app server
https://frankenphp.dev
MIT License
6.88k stars 235 forks source link

Docker Dev Image Won't Build #928

Closed tommmoe closed 3 months ago

tommmoe commented 3 months ago

What happened?

I took the latest dev.Dockerfile from the repo,

docker build -t frankenphp-dev -f dev.Dockerfile

And get the following error at the go build step

 => ERROR [8/9] RUN go build -buildvcs=false                                                                       0.2s
------
 > [8/9] RUN go build -buildvcs=false:
0.224 go: go.mod file not found in current directory or any parent directory; see 'go help modules'
------
FrankenPHPDebugDev.Dockerfile:68
--------------------
  66 |
  67 |     WORKDIR /go/src/app/caddy/frankenphp
  68 | >>> RUN go build -buildvcs=false
  69 |
  70 |     WORKDIR /go/src/app
--------------------
ERROR: failed to solve: process "/bin/sh -c go build -buildvcs=false" did not complete successfully: exit code: 1

Trying to pinpoint why my production server dies a few times a day randomly with a 139 exit code WARN exited: octane_00 (exit status 139; not expected)

Honestly I have no idea what I'm looking at and how to fix it, I'm running WSL with Ubuntu 22.04.3 LT if that helps.

Build Type

Custom (tell us more in the description)

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

N/A

Relevant log output

No response

tommmoe commented 3 months ago

was missing go.mod from the clone somehow? all sorted now