The builtin Deno builder won’t run anything but main.ts
. If you remove the [build]
section in fly.toml
, and add this Dockerfile you should be good to go though:
FROM denoland/deno:1.13.2
WORKDIR /app
USER deno
COPY server.ts deps.* ./
RUN /bin/bash -c "deno cache deps.ts || true"
ADD . .
RUN deno cache server.ts
CMD ["run", "--allow-net", "server.ts"]