Skip to content

Commit

Permalink
Install Node.js 10 straight from CentOS 8 repos
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Jul 9, 2020
1 parent 58d10a2 commit 84ec6b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packagingenv/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ FROM {{ dist }}:{{ version }}

RUN yum -y install gcc-c++ make git libicu-devel rpmdevtools

{%- if version not in ('centos8') %}

# Add NodeSource repo
RUN curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -

{%- endif %}

{%- if version in ('centos8') %}

# Install development tools
Expand Down
3 changes: 0 additions & 3 deletions packagingenv/centos8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ FROM centos:8

RUN yum -y install gcc-c++ make git libicu-devel rpmdevtools

# Add NodeSource repo
RUN curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -

# Install development tools
RUN yum -y module install nodejs:10

Expand Down

0 comments on commit 84ec6b9

Please sign in to comment.