FROM debian:stretchRUN apt update -y && apt install curl -yARG DENO_VERSION=v0.21.0ENV DENO_DIR=/denoENV DENO_INSTALL=${DENO_DIR}/.denoENV PATH=${DENO_INSTALL}/bin:${PATH}RUN curl -fsSL https://deno.land/x/install/install.sh | sh -s -- ${DENO_VERSION}COPY modules.json modules-lock.json /servest/COPY ./vendor /servest/vendorCOPY ./tools/fetch_dir.ts /servest/tools/fetch_dir.tsRUN deno -A /servest/tools/fetch_dir.ts /servest/vendorCOPY . /servestRUN deno -A /servest/tools/fetch_dir.ts /servest/siteWORKDIR /servest/siteENV PORT=${PORT}EXPOSE ${PORT}CMD ["deno", "--allow-net", "--allow-read", "--allow-env", "/servest/site/index.ts"]