doh / Dockerfile
hongshi-files's picture
Upload 13 files
ab85026 verified
raw
history blame contribute delete
362 Bytes
FROM denoland/deno:alpine-1.45.5
WORKDIR /app
COPY . /app
RUN apk add --no-cache ca-certificates
ENV HOST=0.0.0.0
ENV PORT=7860
ENV DOH=cloudflare-dns.com
# DOH_PATH optional: when set and not 'dns-query', only /${DOH_PATH} is enabled
# Warm up Deno deps for faster cold start
RUN deno cache /app/server.ts
EXPOSE 7860
CMD ["deno","run","-A","/app/server.ts"]