#Docker build hang on deno_plural

11 messages · Page 1 of 1 (latest)

blissful yarrow
#

Hello! I'm trying to build a docker image on WSL2 and it seems to hang when it tries to download deno_plural :(((

Has anybody else run into similar issue? Any insight would be super appreciated!! THxxx

final heron
#

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

blissful yarrow
#

oh thank you! I just resolved the issue by getting rid of RUN and have it done in the CMD lol

final heron
blissful yarrow
#

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"]
final heron
#

dunno, I do not see anything obvious. 😐