From d7aed0baddaf8cf2c09a7ada122860ad46df0b7f Mon Sep 17 00:00:00 2001 From: Jan Rabcan Date: Wed, 20 Oct 2021 03:12:05 +0200 Subject: [PATCH] a. --- Dockerfile | 4 ++-- app.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 221f692..b6c3359 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app.ts b/app.ts index 59928c5..eca8b3d 100644 --- a/app.ts +++ b/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 } ); } -} \ No newline at end of file +}