denoland/deno_docker

Consider changing `WORKDIR` to `/app` by default

felipecrs opened this issue · 1 comments

So that the following could be simplified:

- $ docker run -it --init -p 1993:1993 -v $PWD:/app denoland/deno:1.13.2 run --allow-net /app/main.ts
+ $ docker run -it --init -p 1993:1993 -v $PWD:/app denoland/deno:1.13.2 run --allow-net main.ts

And would prevent users extending from the denoland/deno image from having to switch the WORKDIR manually.

But I'm not sure if there is any concern in doing so. The node image does not do it, BTW.

I think that should be left to the user to define in their own Dockerfile. Also just as a personal opinion but I think source code should either be kept in /usr/local/src or in $HOME/app.