experiment to use fileserver from deno instead of nginx

Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-08-11 11:05:01 +02:00
parent 5ccf5071fa
commit b55df10410

View File

@ -16,6 +16,9 @@ COPY --from=base /base .
ADD "https://random-uuid.deno.dev" skipcache ADD "https://random-uuid.deno.dev" skipcache
RUN yarn build RUN yarn build
FROM nginx:stable AS prod FROM denoland/deno:1.36.1 AS prod
COPY --from=build /build/dist /usr/share/nginx/html 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 EXPOSE 3000