Skip to main content
Module

x/servest/Dockerfile

🌾A progressive http server for Deno🌾
Go to Latest
File
FROM debian:stretchRUN apt update -y && apt install curl unzip -yENV DENO_DIR=/denoENV DENO_INSTALL=${DENO_DIR}/.denoENV PATH=${DENO_INSTALL}/bin:${PATH}RUN curl -fsSL https://deno.land/x/install/install.sh | bash \ && deno -VCOPY modules.json modules-lock.json /servest/COPY ./vendor /servest/vendorCOPY ./tools/fetch_dir.ts /servest/tools/fetch_dir.tsRUN deno run -A /servest/tools/fetch_dir.ts /servest/vendorCOPY . /servestRUN deno run -A /servest/tools/fetch_dir.ts /servest/siteWORKDIR /servest/siteENV PORT=${PORT}EXPOSE ${PORT}CMD ["deno", "run", "--allow-net", "--allow-read", "--allow-env", "/servest/site/index.ts"]