This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM hayd/alpine-deno:1.3.1
|
||||
FROM denoland/deno:latest
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
@@ -10,4 +10,4 @@ COPY --chown=deno . .
|
||||
|
||||
RUN deno cache --unstable app.ts
|
||||
|
||||
CMD ["run", "--allow-net=0.0.0.0:8000", "--allow-read=less,public/assets", "--allow-write=public/assets/css", "app.ts"]
|
||||
CMD ["run", "--unstable", "--allow-net=0.0.0.0:8000", "--allow-read=less,public/assets", "--allow-write=public/assets/css", "app.ts"]
|
||||
|
||||
4
app.ts
4
app.ts
@@ -1,4 +1,4 @@
|
||||
import { serve } from "https://deno.land/std/http/server.ts";
|
||||
import { serve } from "https://deno.land/std@0.100.0/http/server.ts";
|
||||
import { copyFile, getFileList, readFile, readFileRaw } from "./tools/tool.ts";
|
||||
import { template } from "./page.ts";
|
||||
|
||||
@@ -48,4 +48,4 @@ for await ( const req of s ) {
|
||||
console.log( req.url );
|
||||
req.respond( { status : 404 } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user