Skip to content

Commit 4e3d68d

Browse files
fix(core): Using public ECR image for preDeploy to avoid Docker Throttling (#544)
* fix(core): Using AWS public ecr node image for preDeploy * fix(core): pin exact node version to 12
1 parent 11a98ed commit 4e3d68d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/cdk-accelerator/src/codebuild/cdk-deploy-project.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,9 @@ export class PrebuiltCdkDeployProject extends CdkDeployProjectBase {
131131
fs.writeFileSync(
132132
path.join(this.projectTmpDir, 'Dockerfile'),
133133
[
134-
'FROM node:12-alpine3.11',
134+
'FROM public.ecr.aws/bitnami/node:12',
135135
// Install the package manager
136136
...installPackageManagerCommands(props.packageManager).map(cmd => `RUN ${cmd}`),
137-
`RUN mkdir ${appDir}`,
138137
`WORKDIR ${appDir}`,
139138
// Copy over the project root to the /app directory
140139
`ADD . ${appDir}/`,

0 commit comments

Comments
 (0)