permission denied error when running deno install inside dockerfile
Hi there, I'm in the process of trying to migrate my node app to deno, as I was really impressed with the recent deno 2 announcement
I have the following dockerfile, slightly modified from the example.
However when trying to build this, I get an error when running the deno install step:
The package listed is random. Previously it was ky, before that it was logform. I'm at a loss, as deno install works fine on my windows machine
2 Replies
I thought the error was caused by the
ENV DENO_DIR=./.deno_cache
that I added due to the following: https://github.com/denoland/deno_docker/blob/main/README.md#running-on-google-cloud-rungcr
However even after removing it I still get that same os error, now due to failing to write the lockfile:
I'm at a lossSeems like the deno user doesn’t have permissions in /app. Also seems like your lockfile is outdated, it shouldn’t be trying to write (there are flags that alter that behavior also)