#Docker build hang on deno_plural
11 messages · Page 1 of 1 (latest)
it is not hanging
you are running your server in the dockerfile before the entrypoint
it is "stuck" on that
If you want to cache your remote imports.
Which is what I think you are trying to do.
Use deno cache file.ts
oh thank you! I just resolved the issue by getting rid of RUN and have it done in the CMD lol

btw you still want to cache any remote deps if you have them.
Otherwise they will redownload on each docker container restart which is bad.
good point - I actually thought I got it to work but it only works in the directory lol, which defeats the purpose of dockerization. So I tried this as an attemp to do caching, but when I run docker-compose up it gives me Module not found 😦
FROM denoland/deno:1.32.3
WORKDIR /app
COPY . /app
RUN deno cache server/server.ts
EXPOSE 3000
CMD ["deno", "run", "--allow-env", "--allow-read", "--allow-net", "--allow-run", "--allow-write", "--no-check", "--lock=deno.lock", "--lock-write", "server/server.ts"]
dunno, I do not see anything obvious. 😐