From b55df104107f7dc0547720ff67d9b906256b86fa Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Fri, 11 Aug 2023 11:05:01 +0200 Subject: [PATCH] experiment to use fileserver from deno instead of nginx Signed-off-by: Max Schmidt --- astro/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/astro/Dockerfile b/astro/Dockerfile index a93aaed..3e8492e 100644 --- a/astro/Dockerfile +++ b/astro/Dockerfile @@ -16,6 +16,9 @@ COPY --from=base /base . ADD "https://random-uuid.deno.dev" skipcache RUN yarn build -FROM nginx:stable AS prod -COPY --from=build /build/dist /usr/share/nginx/html +FROM denoland/deno:1.36.1 AS prod +WORKDIR /site +RUN deno install --allow-net --allow-read https://deno.land/std@0.198.0/http/file_server.ts +COPY --from=build /build/dist . +CMD ["file_server", "--port", "3000"] EXPOSE 3000 \ No newline at end of file