Hey, I'm trying to build an image using this Dockerfile.
FROM thecodingmachine/php:8.0-v4-apache-node14
COPY ./ /var/www/html/
RUN composer install
RUN yarn install
RUN yarn prod
docker build -t testapp .
I seem to be running into permission issues. The yarn build fails with
Error: EACCES: permission denied, open '/var/www/html/public/mix-manifest.json'
Do I need to configure/set something differently for permissions to work properly when building?
I also had issues with the image not being able to modify existing files (I had a vendor folder already and it complained about writing to that too). For this one the folder exists but that file doesn't exist yet.
Hey, I'm trying to build an image using this Dockerfile.
docker build -t testapp .
I seem to be running into permission issues. The yarn build fails with
Error: EACCES: permission denied, open '/var/www/html/public/mix-manifest.json'
Do I need to configure/set something differently for permissions to work properly when building?
I also had issues with the image not being able to modify existing files (I had a vendor folder already and it complained about writing to that too). For this one the folder exists but that file doesn't exist yet.