diff --git a/src/lib/buildPacks/gatsby.ts b/src/lib/buildPacks/gatsby.ts index a10f84c43..dc1c7d0e8 100644 --- a/src/lib/buildPacks/gatsby.ts +++ b/src/lib/buildPacks/gatsby.ts @@ -19,8 +19,8 @@ const createDockerfile = async (data, imageforBuild): Promise => { export default async function (data) { try { const { baseImage, baseBuildImage } = data; - await buildCacheImageWithNode(data, baseImage); - await createDockerfile(data, baseBuildImage); + await buildCacheImageWithNode(data, baseBuildImage); + await createDockerfile(data, baseImage); await buildImage(data); } catch (error) { throw error;