Skip to content

Commit

Permalink
feat: node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhenson committed May 7, 2024
1 parent 133a1cf commit 7105470
Show file tree
Hide file tree
Showing 6 changed files with 2,545 additions and 9,656 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/foo-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: '20.x'
- run: npm install
- run: npm run build
- name: Run Lighthouse Check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: '20.x'
- run: npm install
- run: npm run build
- name: Unit tests
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Inspired by:
# https://github.com/alpeware/chrome-headless-stable/blob/master/Dockerfile
FROM ubuntu:18.04
FROM ubuntu:20.04

LABEL maintainer "Foo <hello@foo.software>"

# install node
RUN apt-get update \
&& apt-get -y install curl gnupg build-essential \
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& curl -sL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get -y install nodejs

RUN node -v
Expand All @@ -19,6 +19,9 @@ RUN apt-get update -qqy \
gnupg \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update -qqy \
Expand Down
Loading

0 comments on commit 7105470

Please sign in to comment.