-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application not loading after successful docker image build | Class "config" does not exist #1360
Comments
And you are using Laravel with Octane? What does your Caddyfile look like? I think it needs to be at the root of the repo when building like this. |
@AlliBalliBaba I am using it with Laravel only. I haven't installed Octane or anything. Do I need to install Octane to my existing Laravel project? |
No you don't need Octane, I was just assuming you were using it since it's needed for worker mode. |
@AlliBalliBaba I ran the
|
@RishabhBizi I tried installing with your Dockerfile and think I found what the issue is. Composer needs some additional php extensions in order to function, this worked for me (I added
|
@AlliBalliBaba I applied your changes but now it's breaking at the line Error:
|
This looks like you also need either the |
@AlliBalliBaba I tried it with both
|
Someone actually opened a similar issue #1367. It would be nice to document a list of extensions Laravel absolutely requires to function ( After looking at this static-php-cli tool, I found out that the dom extension actually needs the following libs to properly function: icu,libiconv,libxml2,xz,zlib This command worked for me, but not everything on here might be necessary:
|
What happened?
I am trying to convert my laravel application to standalone binary. The docker image is building successfully but when I try to run the container and check it on browser I am getting the below issue even the website homepage is not loading.
My dockerfile is as follows:
I am not getting what I am doing wrong or do I need to install anything else?
Build Type
Official static build
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
The text was updated successfully, but these errors were encountered: