Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix: ubuntu image dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed Apr 27, 2022
1 parent 6d1e67d commit e5a0604
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/cli/src/deploy/cicd/cicd.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const getRepositoryImageBuilder = () => ({
Name: 'DOCKERFILE',
Value: {
'Fn::Sub': [
'FROM public.ecr.aws/ubuntu/ubuntu:latest',
'FROM public.ecr.aws/ubuntu/ubuntu:20.10_stable',

// https://stackoverflow.com/a/59693182/8786986
'ENV DEBIAN_FRONTEND noninteractive',
Expand All @@ -127,16 +127,16 @@ export const getRepositoryImageBuilder = () => ({
'RUN apt-get install -y git',
'RUN apt-get install -y jq',

// Install Node.js https://stackoverflow.com/a/60137919/8786986
'SHELL ["/bin/bash", "--login", "-i", "-c"]',
'RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash',
'RUN source /root/.bashrc && nvm install --lts && nvm use --lts',
// Install Yarn
'RUN npm install -g yarn',
// Install Node.js
'RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -',
'RUN apt-get install -y nodejs',

// Clean cache
'RUN apt-get clean',

// Install Yarn
'RUN npm install -g yarn',

// Install carlin CLI
'RUN yarn global add carlin',

Expand Down

0 comments on commit e5a0604

Please sign in to comment.