denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.66k stars 654 forks source link

docs: update deno version in example Dockerfile for deployment #2766

Open gjtiquia opened 1 week ago

gjtiquia commented 1 week ago

some context: i developed the Fresh app with Deno 2.0

using the previous version will result in an error log that looks something like this

 => ERROR [4/4] RUN deno cache main.ts                                                                                                                                 0.3s 
------
 > [4/4] RUN deno cache main.ts:
0.273 error: invalid type: string "auto", expected a boolean
------
Dockerfile:9
--------------------
   7 |
   8 |     COPY . .
   9 | >>> RUN deno cache main.ts
  10 |
  11 |     EXPOSE 8000
--------------------
ERROR: failed to solve: process "/bin/sh -c deno cache main.ts" did not complete successfully: exit code: 1

using the new version fixed the issue