FROM denoland/deno:alpine-1.16.2

WORKDIR /app

COPY deps.ts .
COPY testdeps.ts .
RUN deno cache deps.ts testdeps.ts

ADD . .

ENTRYPOINT []

CMD  deno test -c tsconfig.json --allow-net --allow-read --allow-write --allow-env test.ts
