Antonio Sampaio
Antonio Sampaio9mo ago

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"]
No description
1 Reply
Antonio Sampaio
Antonio SampaioOP9mo ago
Ops, fixed by adding node_modules to a new .dockerignore