Skip to content

Commit

Permalink
🎉 Bump versions to align with current Lambda env
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Dec 2, 2021
1 parent 47a538a commit 6111447
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dockerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export function generateDockerfile (options) {
const lines = []

// Base image on Amazon Linux
lines.push('FROM amazonlinux:2.0.20210721.2')
lines.push('FROM amazonlinux:2.0.20211005.0')

// Install prerequisites
lines.push('RUN yum install -y gcc gcc-c++ git make openssl-devel tar zip')
lines.push('RUN curl https://nodejs.org/download/release/v14.17.5/node-v14.17.5-linux-x64.tar.gz | tar xz -C /usr --strip-components=1')
lines.push('RUN curl https://nodejs.org/download/release/v14.18.1/node-v14.18.1-linux-x64.tar.gz | tar xz -C /usr --strip-components=1')

// Install package managers
lines.push('RUN npm install -g npm@6.14.14')
if (yarn) lines.push('RUN npm install -g yarn@1.22.11')
lines.push('RUN npm install -g npm@6.14.15')
if (yarn) lines.push('RUN npm install -g yarn@1.22.17')

// Set the workdir to same directory as Lambdas executes in
// Some tools, e.g. Next.js, hard codes the path during the build phase.
Expand Down

0 comments on commit 6111447

Please sign in to comment.