sylvie
permission denied error when running deno install inside dockerfile
sorry to revive an old thing- found this via questions.deno.com somehow and figured i'd share the answer to help others:
this is a docker problem.
deno install
in docker is trying to write to a root level directory, which needs root access. however, since you have USER deno
above the RUN deno install
line, it is trying to install packages as a non-root user, which will fail. The fix is to move USER deno
to after RUN deno install
:
5 replies