bref
bref copied to clipboard
Laravel Queue Dockerfile: entrypoint requires the handler name to be the first argument
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?