docs: update more pages for Fresh 2 (#3141)

This commit is contained in:
Marvin Hagemeister
2025-07-25 19:04:08 +02:00
committed by GitHub
parent ff34ec8342
commit b4e4a0c0f0
8 changed files with 130 additions and 8 deletions
+4 -3
View File
@@ -16,7 +16,7 @@ caching **will** cause your project to not function correctly.
Here is an example `Dockerfile` for a Fresh project:
```dockerfile Dockerfile
FROM denoland/deno:1.38.3
FROM denoland/deno:latest
ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}
@@ -24,11 +24,12 @@ ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}
WORKDIR /app
COPY . .
RUN deno cache main.ts
RUN deno task build
RUN deno cache _fresh/server.js
EXPOSE 8000
CMD ["run", "-A", "main.ts"]
CMD ["serve", "-A", "_fresh/server.js"]
```
To build your Docker image inside of a Git repository: