FROM denoland/deno:latest WORKDIR /RUN RUN apt-get update && apt-get install -y \ curl \ git RUN --mount=type=secret,id=CODE,mode=0444,required=true \ git clone $(cat /run/secrets/CODE) . && \ chmod -R 777 ./* RUN deno cache node.ts --reload --node-modules-dir=true || true EXPOSE 7860 ENV HOST=0.0.0.0 ENV PORT=7860 ENV NODE_NO_WARNINGS=1 CMD ["deno", "run", "--allow-net", "--allow-read", "--allow-env", "--allow-ffi", "--node-modules-dir=true", "node.ts"]