Skip to content

Laravel Queue Dockerfile: entrypoint requires the handler name to be the first argument #1896

@michaelaguiar

Description

@michaelaguiar

I created a dockerfile for my queue service because its in an unsupported region, and couldn't use the native runtimes.

Here is my Dockerfile

FROM bref/php-83:2

COPY --from=bref/extra-pgsql-php-83:1 /opt /opt

# Copy the source code in the image
COPY . /var/task

RUN echo "extension=pdo_pgsql.so" >> /opt/bref/etc/php/conf.d/bref.ini

# Configure the handler file (the entrypoint that receives all HTTP requests)
CMD ["Bref\\LaravelBridge\\Queue\\QueueHandler"]

When this queue service picks up the jobs, I get the error: entrypoint requires the handler name to be the first argument. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions