fixing deno buldpack to not run main before copying directory
This commit is contained in:
parent
c63237684a
commit
cb01bbe4ac
@ -42,9 +42,8 @@ const createDockerfile = async (data, image): Promise<void> => {
|
|||||||
Dockerfile.push(`COPY .${baseDirectory || ''}/deps.ts /app`);
|
Dockerfile.push(`COPY .${baseDirectory || ''}/deps.ts /app`);
|
||||||
Dockerfile.push(`RUN deno cache deps.ts`);
|
Dockerfile.push(`RUN deno cache deps.ts`);
|
||||||
}
|
}
|
||||||
Dockerfile.push(`COPY ${denoMainFile} /app`);
|
|
||||||
Dockerfile.push(`RUN deno cache ${denoMainFile}`);
|
|
||||||
Dockerfile.push(`COPY .${baseDirectory || ''} ./`);
|
Dockerfile.push(`COPY .${baseDirectory || ''} ./`);
|
||||||
|
Dockerfile.push(`RUN deno cache ${denoMainFile}`);
|
||||||
Dockerfile.push(`ENV NO_COLOR true`);
|
Dockerfile.push(`ENV NO_COLOR true`);
|
||||||
Dockerfile.push(`EXPOSE ${port}`);
|
Dockerfile.push(`EXPOSE ${port}`);
|
||||||
Dockerfile.push(`CMD deno run ${denoOptions ? denoOptions.split(' ') : ''} ${denoMainFile}`);
|
Dockerfile.push(`CMD deno run ${denoOptions ? denoOptions.split(' ') : ''} ${denoMainFile}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user