DenoDDeno
Powered by
toninhoT
Denoβ€’3y agoβ€’
1 reply
toninho

Cache fresh deps on docker problem

I have a brand new fresh project with only the default deps and when i try to put my app in a docker container it throws the error in the image

Dockerfile
FROM denoland/deno:1.41.0

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts && \
    deno task build

CMD ["deno", "run", "-A", "main.ts"]
FROM denoland/deno:1.41.0

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts && \
    deno task build

CMD ["deno", "run", "-A", "main.ts"]
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How does Fresh run esbuild on Deploy without cache writes?
bpevBbpev / help
3y ago
Fresh in a Docker exiting process
kushranadaKkushranada / help
4y ago