Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix(docker): revert to ubuntu 22
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Sep 16, 2023
1 parent bbb315b commit a239231
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dockerfiles/sfpowerscripts.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-bookworm
FROM ubuntu:22.04


ARG SFPOWERSCRIPTS_VERSION=alpha
ARG SF_CLI_VERSION=2.8.11
Expand Down Expand Up @@ -39,6 +40,15 @@ RUN apt-get update \
&& apt-get clean --assume-yes \
&& rm -rf /var/lib/apt/list/*

# install nodejs via nodesource
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends nodejs \
&& apt-get autoremove --assume-yes \
&& apt-get clean --assume-yes \
&& rm -rf /var/lib/apt/list/*

# install yarn
RUN npm install --global yarn --omit-dev \
Expand Down

0 comments on commit a239231

Please sign in to comment.