doc: add information about deno compile (#2783)

This commit is contained in:
Ian Bull
2024-12-05 14:04:41 +01:00
committed by GitHub
parent d86dcd6d2f
commit f1b6b4c401
+11
View File
@@ -69,6 +69,17 @@ documentation.
- [Amazon Web Services][aws-container-registry]
- [Google Cloud][gcp-container-registry]
## Self Contained Executable
With Deno 2.1, you can create a self-contained executable of your Fresh project
that includes all assets and dependencies. This executable can run on any
platform without requiring Deno to be installed.
```sh Terminal
$ deno build
$ deno compile --include static --include _fresh --include deno.json -A main.ts
```
[aws-container-registry]: https://docs.aws.amazon.com/AmazonECS/latest/userguide/create-container-image.html#create-container-image-push-ecr
[gcp-container-registry]: https://cloud.google.com/container-registry/docs/pushing-and-pulling
[deno-deploy]: https://deno.com/deploy