a.
All checks were successful
internetmastercz/test/pipeline/head This commit looks good

This commit is contained in:
2021-10-20 03:12:05 +02:00
parent 24db9bf2e8
commit d7aed0badd
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM hayd/alpine-deno:1.3.1 FROM denoland/deno:latest
EXPOSE 8000 EXPOSE 8000
@@ -10,4 +10,4 @@ COPY --chown=deno . .
RUN deno cache --unstable app.ts 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
View File

@@ -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 { copyFile, getFileList, readFile, readFileRaw } from "./tools/tool.ts";
import { template } from "./page.ts"; import { template } from "./page.ts";
@@ -48,4 +48,4 @@ for await ( const req of s ) {
console.log( req.url ); console.log( req.url );
req.respond( { status : 404 } ); req.respond( { status : 404 } );
} }
} }