DEV Community

Discussion on: Simple steps to Dockerize your Laravel app

Collapse
 
mmanishh profile image
manish maharjan

Hey Ahmed,

I got error while installing node in the custom dockerfile for the app. Here is the error :

E: Unable to locate package nodejs
E: Unable to locate package npm

Collapse
 
safventure11000 profile image
Josafe Balili • Edited

Hey, I had the same error as you. I fixed it by changing
RUN apt install nodejs npm -y

to

RUN apt-get update && apt-get install -y nodejs

in Dockerfile

Thanks for this tutorial Ahmed. I used this in exploring setup for laravel queues using redis and horizon.